### Question:
SmooksServiceFactory implements ServiceFactory { public Object getService(final Bundle bundle, final ServiceRegistration registration) { return new SmooksOSGIFactory(bundle); }  Object getService(final Bundle bundle, final ServiceRegistration registration); void ungetService(final Bundle bundle, final ServiceRegistration registration, final Object service);  }### Answer:
@Test public void getService() { final ServiceFactory serviceFactory = new SmooksServiceFactory(); final Bundle bundle = mock(Bundle.class); final Object service = serviceFactory.getService(bundle, null); assertThat(service, is(instanceOf(SmooksFactory.class))); }