@Test
public void finishHistoryEntry() {

    when(resolver.getResource(Mockito.anyString())).thenReturn(resource);
    HistoryEntry history = mock(HistoryEntryImpl.class);
    when(history.getRepositoryPath()).thenReturn("path");
    when(history.getResult()).thenReturn(RESULT.SUCCESS);
    historyUtil.finishHistoryEntry(history, resolver);
    verify(valueMap, times(1)).put("state", STATE.FINISHED.name());
}