@Test
    public void testRunCommand(@TempDir Path tempDir) {
        TestPluginProvider.use(tempDir, (app, bootstrap, plugin) -> {
            CommandExecutor commandExecutor = app.getCommandExecutor();
            commandExecutor.execute("group default permission set test").join();

            Group group = bootstrap.getPlugin().getStorage().loadGroup("default").join().orElse(null);
            assertNotNull(group);
            assertTrue(group.hasNode(DataType.NORMAL, Permission.builder().permission("test").build(), NodeEqualityPredicate.EXACT).asBoolean());
        });
    }
A set of 'integration tests' for the standalone LuckPerms app.
standalone/src/test/java/me/lucko/luckperms/standalone/IntegrationTest.java