public void shouldBeAbleToLoadOnlyOne() throws Exception
{
ServiceRegistry registry = new ServiceRegistry(injector.get());
registry.addService(FakeService.class, ShouldBeIncluded.class);
FakeService service = registry.getServiceLoader().onlyOne(FakeService.class);
Assert.assertNotNull(service);
Assert.assertTrue(
"Verify service is of expected type",
service instanceof ShouldBeIncluded);