### Question:
AsymptoticScoreMapper implements ScoreMapper, Serializable { public float getScore(float scoreFactor) { assert inverseValueAtBoundary >= 1f : "value at boundary must be <= 1, so inverse must be >= 1"; float x = 1.0f - scoreFactor; float result = getValue( Math.pow(x, squareness) ); return result; } AsymptoticScoreMapper( float squareness, float valueAtBoundary); float getScore(float scoreFactor); float getInverseValueAtBoundary(); float getSquareness();  }### Answer:
@Test public void testGetScore() { float scoreFull = m1.getScore(1f); assertEquals("scoreFull = 1f", scoreFull, 1f, 0.001f); float scoreAtBoundary = m1.getScore(0f); assertEquals("scoreAtBoundary = 0.4f", scoreAtBoundary, 0.4f, 0.001f); float scoreOutside = m1.getScore(-0.0001f); assertTrue("scoreOutsideBoundary < 0.4f", scoreOutside < 0.4f ); float scoreInside = m1.getScore(0.0001f); assertTrue("scoreInsideBoundary > 0.4f", scoreInside > 0.4f ); }