@Test
public void testResolveService() throws Exception {

    
    BundleContext context = mock(BundleContext.class);
    ServiceReference reference = mock(ServiceReference.class);
    when(context.getAllServiceReferences(anyString(), anyString())).thenReturn(new ServiceReference[] { reference });        
    ServiceReference result = resolveService(context, 998);
    assertNotNull(result);
    
}