ReadMeExample { public static float example01() { String str1 = "This is a sentence. It is made of words"; String str2 = "This sentence is similar. It has almost the same words"; StringMetric metric = StringMetrics.cosineSimilarity(); float result = metric.compare(str1, str2); return result; }  static float example01(); static float example02(); static float example03(); static float example04();  }
@Test public void example01(){ assertEquals(0.4767f, ReadMeExample.example01(), DELTA); }