String jarPath = "../quickfix_cpp/lib/quickfix.jar";
String jarPath = "lib/quickfix-jni.jar";
    public static Test suite() {        TestSuite suite = new TestSuite() {            public String toString() {                return ApiCompatibilityTest.class.getName();            }        };        try {            // TODO Move copy of JNI library into QuickFIX/J repository            String jarPath = "../quickfix_cpp/lib/quickfix.jar";            URL[] urls = new URL[] { new URL("file:" + jarPath) };            ClassLoader jniClassLoader = new URLClassLoader(urls, null);            IgnoredItems ignoredItems = new IgnoredItems(jniClassLoader);            JarFile jar = new JarFile(new File(jarPath), false, ZipFile.OPEN_READ);            Enumeration entries = jar.entries();            while (entries.hasMoreElements()) {                ZipEntry entry = (ZipEntry) entries.nextElement();                String path = entry.getName();                String directory = path.substring(0, path.lastIndexOf('/'));                String name = path.substring(path.lastIndexOf('/') + 1);                if (directory.equals("quickfix") && !name.equals("")) {                    String classname = path.substring(0, path.lastIndexOf(".class")).replace('/',                            '.');                    Class jniClass = jniClassLoader.loadClass(classname);                    if (!ignoredItems.isIgnoredClass(jniClass)) {                        suite.addTest(new ApiTest(jniClass, ignoredItems));                    }                }            }        } catch (Exception e) {            suite.addTest(new FailureTestCase("testInitializationFailure", e));        }        return suite;    }