@Override
  protected void setUp() throws Exception {
    super.setUp();

    proj = createProject(getBundle(), "linkedTest"); // $NON-NLS-1$

    // delete source folder and replace it with a link to its bundle location
    final Exception[] ex = new Exception[1];
    ResourcesPlugin.getWorkspace()
        .run(
            new IWorkspaceRunnable() {

              public void run(IProgressMonitor monitor) throws CoreException {
                try {
                  URL location =
                      FileLocator.find(
                          getBundle(), new Path("resources/linkedTest/src"), null); // $NON-NLS-1$
                  IFolder srcFolder = proj.getProject().getFolder("src"); // $NON-NLS-1$
                  srcFolder.delete(true, null);
                  srcFolder.createLink(
                      FileLocator.toFileURL(location).toURI(), IResource.REPLACE, null);
                } catch (Exception e) {
                  ex[0] = e;
                }
              }
            },
            null);

    if (ex[0] != null) {
      throw ex[0];
    }

    assertEquals(0, proj.getBinaryContainer().getBinaries().length);

    buildProject(proj);
  }
 @Override
 protected void tearDown() throws Exception {
   deleteProject(proj);
   super.tearDown();
 }