public void testBundleNotFound() throws Exception {
CompilerAssert<File, File> compilerAssert = compiler("examples.app2");
compilerAssert.formalErrorReporting(); //<1>
List<CompilationError> errors = compilerAssert.failCompile(); //<2>
assertEquals(1, errors.size()); //<3>
CompilationError error = errors.get(0);
assertEquals(BundleGenMetaModelPlugin.BUNDLE_NOT_FOUND, error.getCode()); //<4>
assertEquals(Collections.singletonList("mybundle"), error.getArguments());
File source = error.getSourceFile();
assertEquals("package-info.java", source.getName());
assertEquals("app2", source.getParentFile().getName());
}