@Test
void annotated() {

    var info = mock(ClassInfo.class);
    doReturn(Command.class).when(info).loadClass();
    
    ClassInfoList list = when(mock(ClassInfoList.class).stream()).thenReturn(Stream.of(info)).getMock();
    when(results.getClassesWithAnnotation(Command.class.getName())).thenReturn(list);
    
    var actual = processor.annotated(Command.class).collect(toList());
    
    verify(graph).scan();
    verify(results).getClassesWithAnnotation(Command.class.getName());
    
    assertEquals(List.of(Command.class), actual);
}