Parser { public Set<Class<? extends Annotation>> annotations() { return annotations; } Parser(Environment<T> environment, @Immutable Set<Class<? extends Annotation>> annotations); void parse(Set<T> types); Set<Class<? extends Annotation>> annotations(); static final Pattern COMMAND; static final Pattern PERMISSION; static final Pattern VERSIONING; static final Pattern URL; static final Pattern WORD; }
@Test void annotations() { assertEquals(Set.of(Command.class), parser.annotations()); }