@Test
void execute_CommandSyntaxException() throws CommandSyntaxException {

    doReturn(true).when(command).testPermission(sender);
    doThrow(new CommandSyntaxException(null, new LiteralMessage("message"), "abc", 2)).when(dispatcher).execute(any(StringReader.class), any(CommandSender.class));
    
    assertTrue(command.execute(sender, "command", "a", "b"));
    verify(listener, times(2)).sendFailureMessage(any());
}