@Test
public void convertPatternLambda() throws Exception {

    CompilationUnit inputCU = parseResource("org/drools/modelcompiler/util/lambdareplace/PatternTestHarness.java");
    CompilationUnit clone = inputCU.clone();
    new ExecModelLambdaPostProcessor(new HashMap<>(), "mypackage", "rulename", new ArrayList<>(), new ArrayList<>(), new HashMap<>(), clone).convertLambdas();
    String PATTERN_HARNESS = "PatternTestHarness";
    MethodDeclaration expectedResult = getMethodChangingName(inputCU, PATTERN_HARNESS, "expectedOutput");
    MethodDeclaration actual = getMethodChangingName(clone, PATTERN_HARNESS, "inputMethod");
    assertThat(actual.toString(), equalToIgnoringWhiteSpace(expectedResult.toString()));
}