BasicClassifier extends AbstractRegisteredItem implements Classifier<I> { @Override public String classify(I item) { throw new RuntimeException("Classify method not implemented"); } BasicClassifier(String theId, String theDescription); @Override String classify(I item);  }
@Test public void classify() { BasicClassifier<String> bc = new BasicClassifier<>("a", "b"); try { String clasz = bc.classify("hello world"); } catch (RuntimeException re) { assertTrue(re.getMessage().contains("not implemented")); } }