@Test
public void testAnnotationDetector() {

    AnnotationReporter reporter = new AnnotationReporter();
    AnnotationDetector detector = new AnnotationDetector(reporter);
    try {
        detector.detect("org.aesh.command.foo");
        assertFalse(reporter.foundManCommand);
        detector.detect("org.aesh.command.man");
        assertTrue(reporter.foundManCommand);
    } catch (IOException e) {
        e.printStackTrace();
    }
}