@Test public void shouldStartCube() { fire(new StartCube(CUBE_ID)); verify(cube).start(); }
public void start(@Observes StartCube event, CubeRegistry registry) { validateAndGet(registry, event.getCubeId()).start(); }
CubeLifecycleController { public void start(@Observes StartCube event, CubeRegistry registry) { validateAndGet(registry, event.getCubeId()).start(); } }
CubeLifecycleController { public void start(@Observes StartCube event, CubeRegistry registry) { validateAndGet(registry, event.getCubeId()).start(); }  }
CubeLifecycleController { public void start(@Observes StartCube event, CubeRegistry registry) { validateAndGet(registry, event.getCubeId()).start(); }  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 start(@Observes StartCube event, CubeRegistry registry) { validateAndGet(registry, event.getCubeId()).start(); }  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);  }