@Test
public void testCleanCache() {

    //GIVEN
    List<String> filePaths = new ArrayList<>();
    filePaths.add("first");
    filePaths.add("second");
    given(pathProvider.getConfigPathsFromCache("test/path")).willReturn(filePaths);
    given(fileFactory.createFile("first")).willReturn(file);
    given(fileFactory.createFile("second")).willReturn(file);
    //WHEN
    underTest.cleanCache();
    //THEN
    verify(configurationAccess).setProperties();
    verify(fileFactory).createFile("first");
    verify(fileFactory).createFile("second");
}