@Test
public void testBroadcastUserStateUpdate() {

	TestUserProxy testUser = new TestUserProxy(testLobby, "Test User");
	
	// Test state update of unregistered user (should be no event generated)
	testLobby.broadcastUserStateUpdate(testUser);
	assertEquals(0, testListener.getNumEvents());
	
	// Test null user
	testLobby.broadcastUserStateUpdate(null);
	assertEquals(0, testListener.getNumEvents());
	
	// Test valid state update
	testLobby.addUserProxy(testUser);
	testLobby.broadcastUserStateUpdate(testUser);
	assertEquals(testUser.getUser(), testListener.getLastUserEvent().getUser());
}