@Test
public void deleteFile()
{

    File cacheFile = tempfile();
    assertTrue("Temp file should have been written", cacheFile.exists());
    Mockito.when(contentCache.getCacheFilePath("url")).thenReturn(cacheFile.getAbsolutePath());
    
    contentCache.deleteFile("url");
    
    assertFalse("File should have been deleted", cacheFile.exists());
}