### Question:
PreprocessedColumnPairImpl implements PreprocessedColumnPair { @Override public double getSimilarity(int leftValue, int rightValue) { return similarityIndex.getSimilarity(leftValue, rightValue); }  @Timed @Override IntCollection getAllSimilarRightRecords(int[] left, double threshold); @Override IntCollection getAllSimilarRightRecords(int leftValue, double threshold); @Override double getMinSimilarity(); @Override Iterable<Double> getThresholds(ThresholdFilter thresholdFilter); @Override double getSimilarity(int leftValue, int rightValue); @Override int getRightValue(int[] right); @Override int getLeftValue(int[] left);  }### Answer:
@Test public void testGetSimilarity() { List<PreprocessedColumnPair> columnPairs = create(); PreprocessedColumnPair ab = columnPairs.get(0); assertThat(ab.getSimilarity(new int[]{4}, new int[]{5, 0})).isEqualTo(0.8); assertThat(ab.getSimilarity(new int[]{4}, new int[]{8, 0})).isEqualTo(0.5); }