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();
}
}