@Test
public void getFiles_validSinglePath() throws AecuException {

    Resource fileResource = mock(Resource.class);
    when(resolver.getResource(FILE1)).thenReturn(fileResource);
    when(fileResource.getName()).thenReturn(FILE1);
    ValueMap fileValues = mock(ValueMap.class);
    when(fileValues.get(JcrConstants.JCR_PRIMARYTYPE, String.class)).thenReturn(JcrConstants.NT_FILE);
    when(fileResource.getValueMap()).thenReturn(fileValues);
    assertEquals(Arrays.asList(FILE1), service.getFiles(FILE1));
}