AppCommand extends ConfigCommand { @Override FluoConfiguration getConfig() { FluoConfiguration config = super.getConfig(); config.setApplicationName(applicationName); return config; }    }
@Test public void testGetConfig() { AppCommand appCommand = new AppCommand() { @Override public void execute() throws FluoCommandException {} }; URL testConfig = getClass().getClassLoader().getResource("test-fluo-conn.properties"); System.setProperty(CommandUtil.FLUO_CONN_PROPS, testConfig.getPath()); String newAppName = "new-app-name"; int newZookeeperTimeout = 100; List<String> overrideConfig = Collections.singletonList( FluoConfiguration.CONNECTION_ZOOKEEPER_TIMEOUT_PROP + "=" + newZookeeperTimeout); appCommand.setApplicationName(newAppName); appCommand.setProperties(overrideConfig); FluoConfiguration fluoConfiguration = appCommand.getConfig(); assertEquals(newAppName, fluoConfiguration.getApplicationName()); assertEquals(newZookeeperTimeout, fluoConfiguration.getZookeeperTimeout()); }