@Test
public void getDonutData() {

    HistoryEntryImpl entry = new HistoryEntryImpl();
    entry.getSingleResults().add(new ExecutionResult(ExecutionState.SKIPPED, "5s", "", null, null, "path"));
    entry.getSingleResults().add(new ExecutionResult(ExecutionState.SUCCESS, "5s", "", null, null, "path"));
    entry.getSingleResults().add(new ExecutionResult(ExecutionState.SUCCESS, "5s", "", null, null, "path"));
    entry.getSingleResults().add(new ExecutionResult(ExecutionState.FAILED, "5s", "", null, null, "path"));
    Date now = new Date();
    entry.setStart(now);
    entry.setEnd(now);
    when(historyUtil.readHistoryEntry(historyResource)).thenReturn(entry);
    overview.init();
    DonutData data = overview.getDonutData();
    assertEquals("50", data.getOkLength());
    assertEquals("75", data.getFailedLength());
    assertEquals("25", data.getFailedRemainder());
    assertEquals("50", data.getOkRemainder());
    assertEquals("50", data.getPercentageOk());
}