Create instance of test suite.
Class testClass =
ClassLoader.getSystemClassLoader().loadClass(
"org.w3c.domts.level3.xpath.alltests");
Constructor testConstructor =
testClass.getConstructor(
new Class[] { DOMTestDocumentBuilderFactory.class });
DOMTestDocumentBuilderFactory factory =
new LSDocumentBuilderFactory(
JAXPDOMTestDocumentBuilderFactory.getConfiguration1());
Object test = testConstructor.newInstance(new Object[] { factory });
return new JUnitTestSuiteAdapter((DOMTestSuite) test);