AsciiNumeric implements Comparator { @Override public boolean matches(String string, String glob) throws FeatureException { throw new FeatureException("Substring match unsupported by ascii-numeric"); } AsciiNumeric(); boolean equals(String string1, String string2); @Override boolean contains(String container, String content); @Override boolean matches(String string, String glob);  }
@Test public void testMatchNotSupported() throws Exception { try { subject.matches("234234", "34"); Assert.fail("Substring is unsupported"); } catch (FeatureException e) { } }