### Question:
LogButton extends BannerButton { void hasUnseenErrors(boolean value) { if (value) { if (!(anim.getStatus() == Status.RUNNING)) { anim.play(); } if (!getStyleClass().contains(HAS_ERRORS_CSS_CLASS)) { getStyleClass().add(HAS_ERRORS_CSS_CLASS); } } else { getStyleClass().remove(HAS_ERRORS_CSS_CLASS); anim.stop(); setRotate(0); setScaleY(1); } } LogButton(); @EventListener void onLogMessage(ErrorLoggedEvent event); @EventListener void onViewedLogArea(LogAreaVisiblityChangedEvent event); @EventListener(station = "LogStage") void onHideStage(HideStageRequest event); @EventListener(station = "LogStage") void onShowStage(ShowStageRequest event);  }### Answer:
@Test public void setUpToDate() { assertFalse(victim.getStyleClass().contains(LogButton.HAS_ERRORS_CSS_CLASS)); victim.hasUnseenErrors(true); assertTrue(victim.getStyleClass().contains(LogButton.HAS_ERRORS_CSS_CLASS)); victim.hasUnseenErrors(false); assertFalse(victim.getStyleClass().contains(LogButton.HAS_ERRORS_CSS_CLASS)); }