@Test
public void weightsRelativeToLargestSupport() throws Exception {

    APIUsagePattern pattern = somePattern(2);
    Model model = () -> asSet(pattern, somePattern(4));
    ViolationWeightFunction weigthFunction = new PatternSupportWeightFunction();
    double weight = weigthFunction.getWeight(emptyOverlap(pattern), null, model);
    assertThat(weight, is(0.5));
}