@Test
public void nonexistentReadFileTest() {

    try {
        TransformationOperation transformationOperation = getNewTestTransformationOperation().relative("foo");
        transformationOperation.getOrCreateReadFile(transformedAppFolder, transformationContext);
        fail("transformationOperation.getOrCreateReadFile was supposed to have thrown an exception");
    } catch (IOException e) {
        assertEquals(e.getMessage(), "Specified file does not exist: " + new File(transformedAppFolder, "foo").getAbsolutePath());
    }
}