Parser { @VisibleForOverride protected void check(Set<T> types) {} 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 check() { var set = mock(Set.class); parser.check(set); verifyNoInteractions(set); }