@Test
public void executeWithHistory() throws AecuException, LoginException {

    ExecutionResult result = mock(ExecutionResult.class);
    when(service.execute(FILE1)).thenReturn(result);
    String out = bean.executeWithHistory(PATH);
    verify(serviceResourceResolverService, times(1)).getAdminResourceResolver();
    verify(service, times(1)).getFiles(PATH);
    verify(service, times(1)).createHistoryEntry();
    verify(service, times(1)).execute(FILE1);
    verify(service, times(1)).execute(FILE1);
    verify(service, times(1)).finishHistoryEntry(Mockito.any());
}