@Test public void shouldDestroyCube() { fire(new DestroyCube(CUBE_ID)); verify(cube).destroy(); }
public void destroy(@Observes DestroyCube event, CubeRegistry registry) { validateAndGet(registry, event.getCubeId()).destroy(); }
CubeLifecycleController { public void destroy(@Observes DestroyCube event, CubeRegistry registry) { validateAndGet(registry, event.getCubeId()).destroy(); } }
CubeLifecycleController { public void destroy(@Observes DestroyCube event, CubeRegistry registry) { validateAndGet(registry, event.getCubeId()).destroy(); }  }
CubeLifecycleController { public void destroy(@Observes DestroyCube event, CubeRegistry registry) { validateAndGet(registry, event.getCubeId()).destroy(); }  void create(@Observes CreateCube event, CubeRegistry registry); void start(@Observes StartCube event, CubeRegistry registry); void stop(@Observes StopCube event, CubeRegistry registry); void destroy(@Observes DestroyCube event, CubeRegistry registry); void changeToPreRunning(@Observes PreRunningCube event, CubeRegistry registry); }
CubeLifecycleController { public void destroy(@Observes DestroyCube event, CubeRegistry registry) { validateAndGet(registry, event.getCubeId()).destroy(); }  void create(@Observes CreateCube event, CubeRegistry registry); void start(@Observes StartCube event, CubeRegistry registry); void stop(@Observes StopCube event, CubeRegistry registry); void destroy(@Observes DestroyCube event, CubeRegistry registry); void changeToPreRunning(@Observes PreRunningCube event, CubeRegistry registry);  }