ActivateCommand extends RemoteCommand { public void setConfigPropertiesFile(Path configPropertiesFile) { this.configPropertiesFile = configPropertiesFile; }  void setNode(InetSocketAddress node); void setConfigPropertiesFile(Path configPropertiesFile); void setClusterName(String clusterName); void setLicenseFile(Path licenseFile); void setRestartWaitTime(Measure<TimeUnit> restartWaitTime); void setRestartDelay(Measure<TimeUnit> restartDelay); void setRestrictedActivation(boolean restrictedActivation); @Override final void run();  }
@Test public void test_cluster_name_discovery() { when(topologyServiceMock("localhost", 9411).isActivated()).thenReturn(false); when(topologyServiceMock("localhost", 9421).isActivated()).thenReturn(false); when(topologyServiceMock("localhost", 9422).isActivated()).thenReturn(false); ActivateCommand command = command(); command.setConfigPropertiesFile(config); doRunAndVerify("my-cluster", command); }
@Test public void test_activate_from_config_file() { ActivateCommand command = command(); command.setConfigPropertiesFile(config); doRunAndVerify("my-cluster", command); }