### Question:
ServerLobby { public GameController getCurrentGame() { return currentGame; } ServerLobby(String serverName, int maxRobots, int maxUsers); synchronized void addLobbyStateListener(ServerLobbyListener listener); synchronized void removeLobbyStateListener(ServerLobbyListener listener); synchronized boolean addUserProxy(UserProxy userProxy); synchronized void removeUserProxy(UserProxy userProxy); synchronized boolean registerRobot(RobotProxy robot); synchronized void unregisterRobot(RobotProxy robot); synchronized void broadcastMessage(String message); synchronized void broadcastUserStateUpdate(UserProxy userProxy); synchronized void setGameType(GameType newType); boolean gameInProgress(); GameController getCurrentGame(); GameType getCurrentGameType(); synchronized RobotProxy getRobotProxy(String identifier); synchronized boolean isUsernameRegistered(String username); String getServerName(); synchronized void launchGame(); synchronized void endCurrentGame();  }### Answer:
@Test public void testGetCurrentGame() { 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); assertEquals(null, testLobby.getCurrentGame()); testLobby.launchGame(); assertTrue(testLobby.getCurrentGame() != null); testLobby.endCurrentGame(); try { Thread.sleep(200); } catch (InterruptedException e) { e.printStackTrace(); } assertEquals(null, testLobby.getCurrentGame()); testLobby.removeUserProxy(user); testLobby.unregisterRobot(robot); }