@Test
public void allowsNonTransientFields() throws Exception {

    final String file = "AllowNonTransientFields.java";
    new PmdAssert(
        file, Matchers.is(true),
        Matchers.not(
            Matchers.containsString(
                "Found non-transient, non-static member."
            )
        )
    ).validate();
}