void () { final GlobalSearchScope scope = ProjectScope.getLibrariesScope(getProject()); final JavaPsiFacade facade = JavaPsiFacade.getInstance(getProject()); assertNotNull(facade.findClass("java.io.DataInput", scope)); assertNotNull(facade.findClass("java.io.DataInputStream", scope)); assertNotNull(facade.findClass("java.io.FilterInputStream", scope)); assertNotNull(facade.findClass("java.io.InputStream", scope)); // without these classes present the following test will always succeed doTest(); }