If the jars maintain the same interface, then all you have to do is run each test with a slighly different classpath - each time with jars from another version.
If you're using Eclipse JUnit integration, just create N run configurations, in each one in the classpath tab specify required jars.
If you want to do it programmatically, then I suggest you start with empty classpath and use URLClassLoader, giving it a different set of jars each time.
Something like this:
URLClassloader ucl = new URLClassLoader( list of jars from version1 );
TestCase tc = ucl.loadClass("Your Test Case").newInstance();
tc.runTest();
ucl = new URLClassLoader( list of jars from version2 );
TestCase tc = ucl.loadClass("Your Test Case").newInstance();
tc.runTest();