### Question:
LinearWeightingFunction implements WeightingFunction { @Override public String getName() { return "Linear"; } private  LinearWeightingFunction(); @Override double getWeight(double y); @Override String getName(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testName() { assertThat(getInstance().getName()).isEqualTo("Linear"); }