@Test
public void allowsLambdaInConstructor()
    throws Exception {

    final String file = "LambdaInConstructor.java";
    new PmdAssert(
        file, new IsEqual<>(true),
        new IsNot<>(
            RegexMatchers.containsPattern(
                String.format(PmdValidatorTest.CODE_IN_CON, file)
            )
        )
    ).validate();
}