StringMetricsExample { public static float example02() { String str1 = "A quirky thing it is. This is a sentence."; String str2 = "This sentence is similar. A quirky thing it is."; StringMetric metric = StringMetrics.cosineSimilarity(); return metric.compare(str1, str2); }  static float example01(); static float example02(); static float example03();  }
@Test public void example02(){ assertEquals(0.7777f, StringMetricsExample.example02(), DELTA); }