ApiServiceClient extends AppAdminClient { public String getServicePath(String appName) throws IOException { String url = getRMWebAddress(); StringBuilder api = new StringBuilder(); api.append(url) .append("/app/v1/services"); if (appName != null) { api.append("/") .append(appName); } appendUserNameIfRequired(api); return api.toString(); } ApiServiceClient();  ApiServiceClient(Configuration c); String getServicePath(String appName); Builder getApiClient(); Builder getApiClient(String requestPath); Service loadAppJsonFromLocalFS(String fileName, String serviceName,
      Long lifetime, String queue); @Override int actionLaunch(String fileName, String appName, Long lifetime,
      String queue); @Override int actionStop(String appName); @Override int actionStart(String appName); @Override int actionSave(String fileName, String appName, Long lifetime,
      String queue); @Override int actionDestroy(String appName); @Override int actionFlex(String appName, Map<String, String> componentCounts); @Override int enableFastLaunch(String destinationFolder); @Override String getStatusString(String appIdOrName); @Override int actionUpgradeExpress(String appName, File path); @Override int initiateUpgrade(String appName,
      String fileName, boolean autoFinalize); @Override int actionUpgradeInstances(String appName, List<String> compInstances); @Override int actionUpgradeComponents(String appName, List<String> components); @Override int actionCleanUp(String appName, String userName); @Override String getInstances(String appName, List<String> components,
      String version, List<String> containerStates); @Override int actionCancelUpgrade(
      String appName); @Override int actionDecommissionInstances(String appName, List<String>
      componentInstances);  }
@Test public void testNoneSecureApiClient() throws IOException { String url = asc.getServicePath("/foobar"); assertTrue("User.name flag is missing in service path.", url.contains("user.name")); assertTrue("User.name flag is not matching JVM user.", url.contains(System.getProperty("user.name"))); }