Assert.assertArrayEquals(new String[]{"some", "program"}, prog.getArguments());
Assert.assertEquals(TEST_JAR_CLASSLOADERTEST_CLASS, prog.getMainClassName());
Configuration c = new Configuration();
c.setString(ConfigConstants.JOB_MANAGER_IPC_ADDRESS_KEY, "devil");
Client cli = new Client(c);
cli.getOptimizedPlanAsJson(prog, 666);
} catch(ProgramInvocationException pie) {
assertTrue("Classloader was not called", callme[0]);
// class not found exception is expected as some point
if( ! ( pie.getCause() instanceof ClassNotFoundException ) ) {
System.err.println(pie.getMessage());