@Test
public void getHistory() throws AecuException {

    HistoryEntry entry = mock(HistoryEntry.class);
    when(entry.toString()).thenReturn(PATH);
    List<HistoryEntry> entries = Arrays.asList(entry);
    when(service.getHistory(0, 1)).thenReturn(entries);
    String history = bean.getHistory(0, 1);
    assertEquals(PATH + "\n\n", history);
}