final JavaCompilerSettings settings = compiler.createDefaultSettings();
settings.setTargetVersion("1.5");
settings.setSourceVersion("1.5");
final MemoryResourceStore store = new MemoryResourceStore();
final CompilationResult result = compiler.compile(
new String[] {
"jci/Func1.java",
"jci/Func2.java"
}, reader, store, this.getClass().getClassLoader(), settings);
assertEquals(toString(result.getErrors()), 0, result.getErrors().length);
assertEquals(toString(result.getWarnings()), 0, result.getWarnings().length);
final byte[] clazzBytesFunc1 = store.read("jci/Func1.class");
assertNotNull("jci/Func1.class is not null", clazzBytesFunc1);
assertTrue("jci/Func1.class is not empty", clazzBytesFunc1.length > 0);
final byte[] clazzBytesFunc2 = store.read("jci/Func2.class");
assertNotNull("jci/Func2.class is not null", clazzBytesFunc2);
assertTrue("jci/Func2.class is not empty", clazzBytesFunc2.length > 0);
}