### Question:
TermWeightPosition implements Comparable<TermWeightPosition> { public static int positionScoreToTermWeightScore(float positionScore) { return Math.round(Math.abs(positionScore * 10000000)); } TermWeightPosition(Builder builder);  TermWeightPosition(TermWeightPosition other); TermWeightPosition clone(); static int positionScoreToTermWeightScore(float positionScore); static float termWeightScoreToPositionScore(int termWeightScore); @Override int compareTo(TermWeightPosition o); @Override String toString(); @Override boolean equals(Object o); boolean equals(TermWeightPosition o); int getOffset(); int getLowOffset(); int getPrevSkips(); int getScore(); boolean getZeroOffsetMatch(); static final int DEFAULT_OFFSET; static final int DEFAULT_PREV_SKIPS; static final int DEFAULT_SCORE; static final boolean DEFAULT_ZERO_OFFSET_MATCH; }### Answer:
@Test public void testPositionScoreToTermWeightScore() { Float positionScore = new Float(-.0552721); Integer twScore = TermWeightPosition.positionScoreToTermWeightScore(positionScore); Float result = TermWeightPosition.termWeightScoreToPositionScore(twScore); Assert.assertEquals(result + "!=" + positionScore, positionScore, result); }