@Test(expected = Exception.class)
public void testBadSource() {

    JavaApp app = new JavaApp(BAD_SOURCE);
    try {
        app.compile();
    }
    catch (Exception e) {
        System.out.println("[INFO] You can ignore the error message above");
        throw e;
    }
}