@Test
public void testResolveBundles() throws IOException {

    Bundle bundle = Mockito.mock(Bundle.class);
    Mockito.when(context.getBundle(1)).thenReturn(bundle);
      Mockito.when(context.getBundles()).thenReturn(new Bundle [] { bundle });
    mbean.resolveBundles(new long[] { 1 });
    Mockito.verify(admin).resolveBundles(new Bundle[] { bundle });
    mbean.resolveBundles(null);
    Mockito.verify(admin).resolveBundles(null);
}