@Test
public void testStopServce() throws LifecycleException, InterruptedException {
supervisor.start();
CountingLifecycleAware service = new CountingLifecycleAware();
SupervisorPolicy policy = new SupervisorPolicy.OnceOnlyPolicy();
Assert.assertEquals(Long.valueOf(0), service.counterGroup.get("start"));
Assert.assertEquals(Long.valueOf(0), service.counterGroup.get("stop"));
supervisor.supervise(service, policy, LifecycleState.START);