Bug 41239 Compile error in JDT JUnit due to SWTUtil [JUnit]
org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseWizardPageOne.java
IPackageFragment pack= getPackageFragment(); 
		try {		
			IType type= resolveClassNameToType(root.getJavaProject(), pack, classToTestName);
			if (type == null) {
				status.setError(WizardMessages.getString("NewTestCaseWizardPageOne.error.class_to_test.not_exist")); 
				return status;
			}
			if (type.isInterface()) {
				status.setWarning(WizardMessages.getFormattedString("NewTestCaseWizardPageOne.warning.class_to_test.is_interface",classToTestName)); 
			}
			
			if (pack != null && !JUnitStubUtility.isVisible(type, pack)) {
				status.setWarning(WizardMessages.getFormattedString("NewTestCaseWizardPageOne.warning.class_to_test.not_visible", new String[] {(type.isInterface())?WizardMessages.getString("NewTestCaseWizardPageOne.Interface"):WizardMessages.getString("NewTestCaseWizardPageOne.Class") , classToTestName})); 
			}
			fClassUnderTest= type;
			fPage2.setClassUnderTest(fClassUnderTest);
		} catch (JavaModelException e) {
			status.setError(WizardMessages.getString("NewTestCaseWizardPageOne.error.class_to_test.not_valid")); 
		} 
		return status;
	}
	/**
	 * Returns the content of the class to test text field.
	 * 
	 * @return the name of the class to test
	 */
	public String getClassUnderTestText() {
		return fClassUnderTestText;
	}