@Test
public void weightsLargerPatternMore() throws Exception {

    APIUsagePattern smallerPattern = somePattern(buildAUG().withActionNode("N").build());
    APIUsagePattern largerPattern = somePattern(buildAUG().withActionNodes("N", "M").build());
    Model model = () -> asSet(smallerPattern, largerPattern);
    double smallerWeight = new PatternSizeWeightFunction().getWeight(instance(smallerPattern), null, model);
    double largerWeight = new PatternSizeWeightFunction().getWeight(instance(largerPattern), null, model);
    assertThat(smallerWeight, is(lessThan(largerWeight)));
}