InstallIntoDhsCommand extends AbstractInstallerCommand { protected void modifyHubConfigForDhs(String groupName) { hubConfig.getAppConfig().setCreateForests(false); hubConfig.getAppConfig().setGroupName(groupName); }  @Override void run(ApplicationContext context, Options options);  }
@Test public void modifyHubConfig() { HubConfigImpl config = new HubConfigImpl(); config.setAppConfig(new AppConfig(), true); InstallIntoDhsCommand command = new InstallIntoDhsCommand(); command.hubConfig = config; command.modifyHubConfigForDhs("Evaluator"); assertEquals("Evaluator", config.getAppConfig().getGroupName(), "The group name needs to be set correctly so that servers are deployed to the correct group"); assertFalse(config.getAppConfig().isCreateForests(), "DHF is not allowed to create forests, as DHS will handle that"); }