MavenProcessor extends Processor<Class<?>> implements AutoCloseable { @Override public void close() { if (results != null) { results.close(); } } MavenProcessor(Environment<Class<?>> environment, ClassGraph graph); @Override void close();  }
@Test void close() { processor.results = results; processor.close(); verify(results).close(); }