### Question:
AdditiveBoostFunction extends ValueSource { @Override public String description() { return "AdditiveBoostFunction(" + (isNegBoost ? -boostValue : boostValue) + ',' + this.scoringFunction.description() + ')'; } AdditiveBoostFunction(final ValueSource scoringFunction, final float boost); @Override FunctionValues getValues(final Map context, final LeafReaderContext readerContext); @Override boolean equals(final Object o); @Override int hashCode(); @Override String description();  }### Answer:
@Test public void testDescription() { when(scoringFunction1.description()).thenReturn("test desc"); final AdditiveBoostFunction func = new AdditiveBoostFunction(scoringFunction1, -2f); final String description = func.description(); assertTrue(description.contains("AdditiveBoostFunction")); assertTrue(description.contains("test desc")); assertTrue(description.contains("-2")); }