    @Test
    public void onJoinMinigame() {

        assertNotSame(player.getLocation(),game.getLobbyPosition());
        plugin.getPlayerManager().addMinigamePlayer(player);
        MinigamePlayer mplayer = plugin.getPlayerManager().getMinigamePlayer(player.getUniqueId());
        plugin.getPlayerManager().joinMinigame(mplayer, game, false, 0D);
        LobbySettingsModule module = (LobbySettingsModule) game.getModule("LobbySettings");
        player.assertLocation(lobby, 0);
        assertTrue(module.isTeleportOnStart());
        assertNotSame(player.getLocation(),game.getStartLocations().indexOf(0));
        server.getScheduler().performTicks(200L);
        player.assertLocation(start,0);
        server.getScheduler().performTicks(200L);
        player.assertLocation(quit,0);

    }