LoadFile extends TransformationUtility<LoadFile> { public LoadFile() { } LoadFile();  LoadFile(String resource); LoadFile setResource(String resource); String getResource(); @Override String getDescription();  }
@Test public void loadFileTest() throws IOException, URISyntaxException { LoadFile loadFile = new LoadFile("stylesheet.css"); TUExecutionResult executionResult = loadFile.execution(transformedAppFolder, transformationContext); Assert.assertEquals(executionResult.getType(), TUExecutionResult.Type.VALUE); Assert.assertEquals(loadFile.getResource(), "stylesheet.css"); Assert.assertNotNull(executionResult.getValue()); File loadedFile = (File) executionResult.getValue(); Assert.assertTrue(loadedFile.getName().endsWith("stylesheet.css")); Assert.assertTrue(loadedFile.exists()); Assert.assertTrue(loadedFile.isFile()); Assert.assertEquals(loadFile.getDescription(), "Load resource stylesheet.css and writes it to a temporary file"); Assert.assertNull(executionResult.getException()); File originalFile = new File(getClass().getResource("/stylesheet.css").toURI()); Assert.assertTrue(FileUtils.contentEquals(originalFile, loadedFile)); }