verify( context ).registerService( eq( GsonProvider.class.getName() ), any( GsonProvider.class ), any( Dictionary.class ) );
}
@Test
public void testStopUnregistersProvider() throws Exception {
Activator activator = new Activator();
BundleContext context = mock( BundleContext.class );
ServiceRegistration registration = mock( ServiceRegistration.class );
when( context.registerService( any( String.class ), anyObject(), any( Dictionary.class ) ) )
.thenReturn( registration );
activator.start( context );
activator.stop( context );
verify( registration ).unregister();
}