@Test
public void dirReadFileTest() {

    try {
        TransformationOperation transformationOperation = getNewTestTransformationOperation().relative("");
        transformationOperation.getOrCreateReadFile(transformedAppFolder, transformationContext);
        fail("transformationOperation.getOrCreateReadFile was supposed to have thrown an exception");
    } catch (IOException e) {
        assertEquals(e.getMessage(), "Specified file is a directory: " + transformedAppFolder.getAbsolutePath());
    }
}