@Test
public void nullsWhenParsingError() throws Exception {

    try {
        new JavaSourceFile(
            "class A {\n",
            "    void int a() {\n",
            "    }\n",
            "}\n"
        ).nulls().asList();
    } catch (final NullfreeException e) {
        // green
    } catch (Throwable e) {
        Assert.fail();
    }
}