### Question:
DelegatingContentHandlerImpl implements FileContentReferenceHandler { @Override public void delete(ContentReference contentReference) throws ContentIOException { ContentReferenceHandler delegate = getDelegate(contentReference); delegate.delete(contentReference); }  void setDelegates(List<ContentReferenceHandler> delegates); @Override boolean isContentReferenceSupported(ContentReference contentReference); @Override boolean isContentReferenceExists(ContentReference contentReference); @Override ContentReference createContentReference(String fileName, String mediaType); @Override InputStream getInputStream(ContentReference contentReference, boolean waitForAvailability); @Override long putInputStream(InputStream sourceInputStream, ContentReference targetContentReference); @Override long putFile(File sourceFile, ContentReference targetContentReference); @Override void delete(ContentReference contentReference); @Override boolean isAvailable(); @Override File getFile(ContentReference contentReference, boolean waitForTransfer);  }### Answer:
@Test public void testDelete() throws Exception { File sourceFile = new File(this.getClass().getResource( "/content-handler-b/file-b-1.txt").toURI()); ContentReference targetContentReferenceToDelete = getTextReference("/content-handler-b"); targetContentReferenceToDelete.setUri(targetContentReferenceToDelete.getUri() + "/file-b-3.txt"); delegatingHandler.putFile(sourceFile, targetContentReferenceToDelete); File fileToDelete = new File(new URI(targetContentReferenceToDelete.getUri())); assertTrue(fileToDelete.exists()); delegatingHandler.delete(targetContentReferenceToDelete); assertFalse(fileToDelete.exists()); }