@Test public void when_callingHandleEpisodeStart_expect_experienceHandlerResetCalled() { LearningBehavior<Integer, Object> sut = LearningBehavior.<Integer, Object>builder() .experienceHandler(experienceHandlerMock) .updateRule(updateRuleMock) .build(); sut.handleEpisodeStart(); verify(experienceHandlerMock, times(1)).reset(); }
@Override public void handleEpisodeStart() { experienceHandler.reset(); }
LearningBehavior implements ILearningBehavior<ACTION> { @Override public void handleEpisodeStart() { experienceHandler.reset(); } }
LearningBehavior implements ILearningBehavior<ACTION> { @Override public void handleEpisodeStart() { experienceHandler.reset(); }  }
LearningBehavior implements ILearningBehavior<ACTION> { @Override public void handleEpisodeStart() { experienceHandler.reset(); }  @Override void handleEpisodeStart(); @Override void handleNewExperience(Observation observation, ACTION action, double reward, boolean isTerminal); @Override void handleEpisodeEnd(Observation finalObservation); void notifyBeforeStep(); }
LearningBehavior implements ILearningBehavior<ACTION> { @Override public void handleEpisodeStart() { experienceHandler.reset(); }  @Override void handleEpisodeStart(); @Override void handleNewExperience(Observation observation, ACTION action, double reward, boolean isTerminal); @Override void handleEpisodeEnd(Observation finalObservation); void notifyBeforeStep();  }