new ServiceReference[] { ref });
when(bundleContext.getService(ref)).thenReturn(service);
Resource res = mock(Resource.class);
SimpleOSGiModel model = factory.getAdapter(res, SimpleOSGiModel.class);
assertNotNull(model);
assertNotNull(model.getService());
assertEquals(service, model.getService());
verifyNoMoreInteractions(res);
}