@Test
void parse_throws_exception() throws CommandSyntaxException {

    assertEquals(
        "Unknown enchantment: invalid",
        assertThrows(CommandSyntaxException.class, () -> type.parse(new StringReader("invalid"))).getRawMessage().toString()
    );
}