    @Test
    public void testPutFile() throws Exception
    {

        File sourceFile = new File(this.getClass().getResource(
                "/content-handler-a/file-a-1.txt").toURI());

        String targetFolder = "/content-handler-a";
        ContentReference targetContentReference = getTextReference(targetFolder);
        targetContentReference.setUri(targetContentReference.getUri() + "/file-a-3.txt");

        delegatingHandler.putFile(sourceFile, targetContentReference);
        
        File targetFile = new File(new URI(targetContentReference.getUri()));
        assertTrue(targetFile.exists());
    }