### Question:
DefaultWarningProcessor implements DocumentProcessor { @Override public Document[] processDocument(Document document) { log.warn("Default processor in use, this is usually not the intention"); return new Document[]{document}; }  @Override Document[] processDocument(Document document); @Override String getName();  }### Answer:
@Test public void testObj() { mock.warn(isA(String.class)); replay(); obj.processDocument(mockDocument); }