### Question:
NewsButton extends BannerButton { public void setUpToDate(boolean value) { if (value) { getStyleClass().remove(UP_TO_DATE_CSS_CLASS); anim.stop(); setRotate(0); setScaleY(1); } else { getStyleClass().add(UP_TO_DATE_CSS_CLASS); anim.play(); } } NewsButton(); void setUpToDate(boolean value); @EventListener void onShowNewsPanel(ShowNewsPanelRequest req);  }### Answer:
@Test public void setUpToDate() { assertFalse(victim.getStyleClass().contains(NewsButton.UP_TO_DATE_CSS_CLASS)); victim.setUpToDate(false); assertTrue(victim.getStyleClass().contains(NewsButton.UP_TO_DATE_CSS_CLASS)); victim.setUpToDate(true); assertFalse(victim.getStyleClass().contains(NewsButton.UP_TO_DATE_CSS_CLASS)); }