@Test
public void forbidsCallToStaticFieldsInNonStaticWay()
    throws Exception {

    final String file = "NonStaticAccessToStaticFields.java";
    new PmdAssert(
        file, Matchers.is(false),
        RegexMatchers.containsPattern(
            String.format(PmdValidatorTest.STATIC_ACCESS, file)
        )
    ).validate();
}