@Test
void check_warn() {

    parser.names.add("a.b");
    parser.check(Warnings.class, Warnings.class.getAnnotation(Permission.class));
    
    verify(environment).warn(Warnings.class, "\"a.b\" inherits itself");
    verify(environment).error(Warnings.class, "\"a.b\" already exists");
}