ServiceImpl implements Service { static Builder builder(String serviceName) { return new BuilderImpl( serviceName, ImmutableSet.builder(), ENV_VAR_PREFIX, 1, TimeUnit.MINUTES, Runtime.getRuntime(), false, false, true); } ServiceImpl(
      String serviceName, ImmutableSet<ApolloModule> modules, String envVarPrefix,
      long watchdogTimeout, TimeUnit watchdogTimeoutUnit, Runtime runtime,
      boolean moduleDiscovery, boolean shutdownInterrupt, boolean cliHelp); @Override String getServiceName(); @Override Instance start(String[] args); @Override Instance start(String[] args, Map<String, String> env); @Override Instance start(final String[] args, final Config config); @Override Instance start(final String[] args, final Config config, final Set<ApolloModule> extraModules);  }
@Test(expected = ApolloHelpException.class) public void testHelp() throws Exception { Service service = ServiceImpl.builder("test").build(); Services.run(service, "--help"); }