@Test
public void testEndCurrentGame() {

	TestUserProxy user = new TestUserProxy(testLobby, "Test User");
	user.getUser().setReady(true);
	RobotProxy robot = new TestRobotProxy(testLobby, "test:mac:addr");
	
	testLobby.addUserProxy(user);
	testLobby.registerRobot(robot);
	testLobby.launchGame();
	
	// Ensure a game is running
	assertTrue(testLobby.getCurrentGame() != null);
	
	testLobby.endCurrentGame();
	// Add a delay to ensure termination completes (separate thread)
	try { Thread.sleep(200); } catch (InterruptedException e) {
		e.printStackTrace();
	}
	
	// Ensure the game terminated, and that a game termination event was
	// generated
	assertEquals(null, testLobby.getCurrentGame());
	assertEquals(ServerLobbyEvent.EVENT_GAME_OVER,
			testListener.getLastGameEvent().getEventType());	
}