expect(ctx.registerService("org.fusesource.commons.management.ManagementStrategy",
strategy, null)).andReturn(sr);
ServiceReference ref = createMock(ServiceReference.class);
MBeanServer mbs = createMock(MBeanServer.class);
expect(ctx.getService(ref)).andReturn(mbs);
expect(ctx.ungetService(ref)).andReturn(false);
replay(ctx, sr, ref, mbs);
strategy.setEnabled(true);
assertTrue(strategy.isEnabled());
strategy.setBundleContext(ctx);