### Question:
SerecoSourceRelevantPartResolver { public String toRelevantPart(String source) { String result = P.matcher(source).replaceAll(""); return result.toLowerCase(); }  String toRelevantPart(String source);  }### Answer:
@Test public void shrink_whitespaces() { assertEquals("iwillbeshrinked", resolverToTest.toRelevantPart("i will be shrinked")); assertEquals("iwillbeshrinked", resolverToTest.toRelevantPart("i will be shrinked")); assertEquals("iwillbeshrinked", resolverToTest.toRelevantPart("i will beshrinked")); assertEquals("iwillbeshrinked", resolverToTest.toRelevantPart("i will\t\tbeshrinked")); assertEquals("iwillbeshrinked", resolverToTest.toRelevantPart("i will\t\nbeshrinked\n ")); }
@Test public void lowercased() { assertEquals("lowered", resolverToTest.toRelevantPart("loWEREd")); assertEquals("lowered", resolverToTest.toRelevantPart("LOWERED")); assertEquals("lowered", resolverToTest.toRelevantPart("lowered")); }