@Test
public void testUnregisterRobot() {

	RobotProxy testRobot = new TestRobotProxy(testLobby, "RegisteredRobot");
	RobotProxy testRobot2 = new TestRobotProxy(testLobby, "UnregisteredRobot");
	testLobby.unregisterRobot(testRobot2);
	
	testListener.clearNumEvents();
	
	// Test null removal
	testLobby.removeUserProxy(null);
	assertEquals(0, testListener.getNumEvents());
	
	// Test removal of unregistered robot
	testLobby.unregisterRobot(testRobot2);
	assertEquals(0, testListener.getNumEvents());
	
	// Test valid removal
	testLobby.unregisterRobot(testRobot);
	assertEquals(testRobot, testListener.getLastRobotEvent().getRobot());
	assertEquals(ServerLobbyEvent.EVENT_ROBOT_UNREGISTERED, 
			testListener.getLastRobotEvent().getEventType());
}