@Test
public void createPath_NotExisting() throws AecuException, PersistenceException {

    String path = "/var/aecu/2018/5";
    when(resolver.getResource("/var/aecu/2018")).thenReturn(mock(Resource.class));
    historyUtil.createPath(path, resolver, JcrResourceConstants.NT_SLING_FOLDER);
    verify(historyUtil, times(1)).createPath(anyString(), eq(resolver), eq(JcrResourceConstants.NT_SLING_FOLDER));
    verify(resolver, times(1)).create(any(Resource.class), eq("5"), any());
}