public void testCuGetClass2() throws Exception {
    // Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=211037
    // In 1.6, Object#getClass() declares return type Class<?>, but in 1.5, it's Class<? extends
    // Object>.
    performCuOK();

    // Test the same with 1.5:
    IJavaProject project = RefactoringTestSetup.getProject();

    ArrayList classpath = new ArrayList(Arrays.asList(project.getRawClasspath()));
    IClasspathEntry jreEntry = RefactoringTestSetup.getJRELibrary().getRawClasspathEntry();
    classpath.remove(jreEntry);
    IClasspathEntry[] noRTJarCPEs =
        (IClasspathEntry[]) classpath.toArray(new IClasspathEntry[classpath.size()]);

    project.setRawClasspath(noRTJarCPEs, new NullProgressMonitor());
    JavaProjectHelper.addRTJar15(project);

    try {
      performCuOK();
    } finally {
      project.setRawClasspath(noRTJarCPEs, new NullProgressMonitor());
      JavaProjectHelper.addRTJar16(project);
    }
  }