LocateFile extends TransformationUtility<LocateFile> { public LocateFile() { } LocateFile();  LocateFile(int parentLevel); LocateFile setParentLevel(int parentLevel); int getParentLevel(); @Override String getDescription();  }
@Test public void locateFileTest() throws IOException { LocateFile locateFile = new LocateFile().relative("pom.xml"); TUExecutionResult executionResult = locateFile.execution(transformedAppFolder, transformationContext); Assert.assertEquals(executionResult.getType(), TUExecutionResult.Type.VALUE); Assert.assertNotNull(executionResult.getValue()); File rootFile = (File) executionResult.getValue(); Assert.assertEquals(rootFile, new File(transformedAppFolder, "pom.xml")); Assert.assertEquals(locateFile.getParentLevel(), 0); Assert.assertEquals(locateFile.getDescription(), "Locate file pom.xml"); }