@Test
    void testParsing() {
        // Arrange
        final CloudKey<Monkey> monkeyKey = CloudKey.of("monkey", Monkey.class);
        this.commandManager.command(
                this.commandManager.commandBuilder("command")
                        .required(monkeyKey, ParserDescriptor.of(new MonkeyParser(), TypeToken.get(Monkey.class)))
                        .optional("leader", booleanParser())
        );

        // Act
        final CommandResult<TestCommandSender> result = this.commandManager.commandExecutor().executeCommand(
                new TestCommandSender(),
                "command Bobo banana 5"
        ).join();

        // Assert
        assertThat(result.commandContext().get(monkeyKey)).isEqualTo(new Monkey("Bobo", Fruit.BANANA, 5));
    }
Test for parsers that consume multiple tokens.
cloud-core/src/test/java/org/incendo/cloud/feature/MultiTokenParserTest.java