### Question:
CapitalLettersMatcher extends CommonTokensMatcher { @Override public boolean matches(String s1, String s2) { if (s1 == null && s2 == null) return true; return super.matches(this.removeNonCaps.transform(s1), this.removeNonCaps.transform(s2)); } CapitalLettersMatcher(); @Override boolean matches(String s1, String s2); @Override void setDelimiter(String delimiter); @Override boolean isExact(); @Override String getExecutionReport();  }### Answer:
@Test public void testMatchesExactly () throws Exception { CapitalLettersMatcher matcher = new CapitalLettersMatcher(); matcher.setMinRatio(1); assertTrue(matcher.matches("Abraham Lincoln came to Ealing", "Abraham Lincoln came to Ealing")); assertTrue(matcher.matches("Abraham Lincoln came to Ealing", "After Laughter comes the End")); }
@Test public void testHm () throws Exception { CapitalLettersMatcher matcher = new CapitalLettersMatcher(); assertTrue(matcher.matches("AbCdEEfG", "Ab Cd Eef G")); matcher.setMinRatio(1); assertFalse(matcher.matches("AbCdEEfG", "Ab Cd Eef G")); }