@Test public void testAddService() throws Exception { ServiceHolder tested = new ServiceHolder(); final Object service = new Object(); tested.addService(service); Set<String> services = (Set<String>) getInternalState(tested, "services"); assertEquals("Size of the \"services\" Set should be 1", 1, services.size()); assertSame("The services Set should didn't contain the expect service", service, services.iterator().next()); }
public void addService(Object service) { services.add(service); }
ServiceHolder { public void addService(Object service) { services.add(service); } }
ServiceHolder { public void addService(Object service) { services.add(service); }  }
ServiceHolder { public void addService(Object service) { services.add(service); }  void addService(Object service); void removeService(Object service); }
ServiceHolder { public void addService(Object service) { services.add(service); }  void addService(Object service); void removeService(Object service);  }