@Test
public void storeExecutionInHistory() throws AecuException {

    when(resolver.getResource(Mockito.anyString())).thenReturn(resource);
    HistoryEntry history = mock(HistoryEntry.class);
    ExecutionResult result = mock(ExecutionResult.class);
    when(result.getState()).thenReturn(ExecutionState.SUCCESS);
    when(result.getOutput()).thenReturn("out");
    when(result.getResult()).thenReturn("result");
    when(result.getTime()).thenReturn("time");
    historyUtil.storeExecutionInHistory(history, result, resolver);
    verify(valueMap, times(1)).put("runState", ExecutionState.SUCCESS.name());
}