@Test
public void classSuppressedNull() throws Exception {

    final List<Null> nulls = new JavaSourceFile(
        "@SuppressWarnings(\"nullfree\")\n",
        "class A {\n",
        "    private final String a = null;\n",
        "}\n"
    ).nulls().asList();
    Assert.assertThat(
        nulls.size(),
        IsEqual.equalTo(1)
    );
    Assert.assertThat(
        nulls.get(0).isSuppressed(),
        IsEqual.equalTo(true)
    );
}