HistoryOverview { public HistoryEntry getHistory() { return historyEntry; }  @PostConstruct void init(); HistoryEntry getHistory(); String getStart(); String getEnd(); String getDuration(); DonutData getDonutData();  }
@Test public void getHistory() { HistoryEntry entry = new HistoryEntryImpl(); when(historyUtil.readHistoryEntry(historyResource)).thenReturn(entry); overview.init(); HistoryEntry history = overview.getHistory(); assertEquals(entry, history); }