}
public void testChangeClassLoadingOrder() throws IOException, InstantiationException, IllegalAccessException,
ClassNotFoundException, IllegalArgumentException, SecurityException, InvocationTargetException,
NoSuchMethodException, JclException {
JarClassLoader jc = new JarClassLoader();
jc.getSystemLoader().setOrder( 1 );
jc.getParentLoader().setOrder( 3 );
jc.getLocalLoader().setOrder( 2 );
jc.add( "./test-classes" );
// Should be loaded from system
Object testObj = jc.loadClass( "xeus.jcl.test.Test" ).newInstance();
assertNotNull( testObj );
testObj.getClass().getDeclaredMethod( "sayHello", null ).invoke( testObj, null );
}