HistoryOverview { public String getStart() { if ((historyEntry == null) || (historyEntry.getStart() == null)) { return StringUtils.EMPTY; } return format.format(historyEntry.getStart()); }  @PostConstruct void init(); HistoryEntry getHistory(); String getStart(); String getEnd(); String getDuration(); DonutData getDonutData();  }
@Test public void getStart() { HistoryEntryImpl entry = new HistoryEntryImpl(); Date now = new Date(); entry.setStart(now); when(historyUtil.readHistoryEntry(historyResource)).thenReturn(entry); overview.init(); String start = overview.getStart(); assertNotNull(start); }