@Test
public void test() throws IOException {

    File fromFile = new File(transformedAppFolder, "foo.xml");
    File toFile = new File(transformedAppFolder, "/src/main/resources/foo.xml");
    assertTrue(fromFile.exists());
    assertFalse(fromFile.isDirectory());
    assertFalse(toFile.exists());
    CopyFile copyFile = new CopyFile().relative("foo.xml").setToRelative("src/main/resources");
    TOExecutionResult executionResult = copyFile.execution(transformedAppFolder, transformationContext);
    assertEquals(executionResult.getType(), TOExecutionResult.Type.SUCCESS);
    assertEquals(copyFile.getDescription(), "Copy file foo.xml to src/main/resources");
    assertEquals(executionResult.getDetails(), "File 'foo.xml' has been copied to '/src/main/resources'");
    assertTrue(fromFile.exists());
    assertTrue(toFile.exists());
    assertTrue(FileUtils.contentEquals(fromFile, toFile));
}