*/
public void testRedefineClassPerRuntime() throws Exception {
ClassLoader v1 = new VersionedClassLoader("First");
ClassLoader v2 = new VersionedClassLoader("Second");
RubyInstanceConfig config1 = new RubyInstanceConfig();
config1.setLoader(v1);
RubyInstanceConfig config2 = new RubyInstanceConfig();
config2.setLoader(v2);
Ruby ruby1 = Ruby.newInstance(config1);
Ruby ruby2 = Ruby.newInstance(config2);
assertEquals("First", getMessage(ruby1));
assertEquals("Second", getMessage(ruby2));