Services { public static Service.Builder usingName(String serviceName) { return ServiceImpl.builder(serviceName); } private  Services(); static Service.Builder usingName(String serviceName); static void run(Service service, String... args); static final String INJECT_SERVICE_NAME; static final String INJECT_UNPROCESSED_ARGS; }
@Test public void testUsingName() throws Exception { Service service = Services.usingName("test").build(); assertThat(service.getServiceName(), is("test")); }