@Test
public void nullsInJava12SyntaxFile() throws Exception {

    Assert.assertThat(
        new JavaSourceFile(
            "public class Test {\n",
            "    enum Day {\n",
            "        MON, TUE, WED, THUR, FRI, SAT, SUN\n",
            "    };\n",
            "    @SuppressWarnings(\"preview\")\n",
            "    public String getDay_1 (Day today) {\n",
            "        String day = switch(today) {\n",
            "            case MON, TUE, WED, THUR, FRI -> \"Weekday\";\n",
            "            case SAT, SUN -> \"Weekend\";\n",
            "        };\n",
            "        return day;\n",
            "    }\n",
            "}"
        ).nulls().asList().size(),
        IsEqual.equalTo(0)
    );
}