How to run tests on mobile Firefox browser in java

We are trying to automate tests on mobile Firefox browser but facing couple of issues.

Environment> Mac OS , Android, Appium, Selenium WebDriver, mobile emulators

What I am expecting: I want correct capabilities or setup to run tests on mobile Firefox browser in java

:heavy_check_mark: Listing installed drivers

appium --version
2.4.1
npm -v
10.2.4
node --version
v21.5.0
Java client - 9.0.0

Main issue: I am not sure what capabilities requires for Firefox browsers, went through gecko and other information but not found any correct solution for this.

Code:

UiAutomator2Options androidOptions = new UiAutomator2Options()
                     .withBrowserName("firefox")
                    .setAutomationName(AutomationName.GECKO)
                    .setPlatformName("android");

                    Map<String, Object> geckoOptions = new HashMap<>();
                    geckoOptions.put("androidPackage", "org.mozilla.firefox");
                    geckoOptions.put("androidDeviceSerial", deviceName);
                    geckoOptions.put("moz:geckoDriverExecutable","/src/test/resources/drivers/geckodriver.exe");

                    androidOptions.setCapability("moz:firefoxOptions", geckoOptions);

                    FirefoxOptions firefoxOptions = new FirefoxOptions();
                    androidOptions.setCapability("moz:firefoxOptions", firefoxOptions);
                    
                    driver = new AndroidDriver(url, androidOptions);