private void copyData(String destPath, String srcPath) throws Exception {
   File sourceFolder = TestUtil.getPluginRelativeFolder(srcPath);
   File destFolder =
       new File(myProject.getProject().getLocation().toString() + "/" + destPath); // $NON-NLS-1$
   destFolder.mkdirs();
   FileUtil.copyFolder(sourceFolder, destFolder);
   myProject.getProject().refreshLocal(IResource.DEPTH_INFINITE, null);
 }
 @Override
 @Before
 protected void setUp() throws Exception {
   String srcFolder = "deployed"; // $NON-NLS-1$
   myProject = TestProject.getExistingProject(srcFolder);
   if (myProject == null) {
     myProject = new TestProject(srcFolder, new String[] {QVTOProjectPlugin.NATURE_ID}, 0);
     String srcContainer = myProject.getQVTSourceContainer().getProjectRelativePath().toString();
     copyData(srcContainer, srcFolder); // $NON-NLS-1$ //$NON-NLS-2$
   }
 }
  @Test
  public void testAccessByPlatformResourceURI() throws Exception {
    String unitPath =
        myProject
            .getProject()
            .getFullPath()
            .append(new Path("/transformations/a/T1.qvto"))
            .toString();
    URI uri = URI.createPlatformResourceURI(unitPath, false);
    UnitProxy unit = UnitResolverFactory.Registry.INSTANCE.getUnit(uri);
    assertResolvedCompiledUnit(unit);

    assertEquals("a", unit.getNamespace());
    assertEquals("T1", unit.getName());
    assertEquals(
        URI.createPlatformResourceURI(unitPath.toString(), false), // $NON-NLS-1$
        unit.getURI());
    assertNotNull(unit);
  }
 File getDestinationFolder() {
   return new File(myProject.getProject().getLocation().toString() + "/deployed");
 }