Connection Refused if ran the appium with mvn test

opa! run

// for macOS
echo $ANDROID_HOME
/Users/YOUR_USER/Library/Android/sdk
  1. Check or reinstall Android Studio
  2. add into your environment ANDROID_HOME
// for macOS !
export ANDROID_HOME=/Users/YOUR_USER!/Library/Android/sdk
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH