@Test
void check_whitespaced_name() {

    parser.check(Object.class, command, "invalid name", Label.NAME);
    
    assertTrue(parser.names.isEmpty());
    verify(environment).error(Object.class, "\"invalid name\" is not a valid command name, should not contain whitespaces");
}