@Test
	public void testRollNumber() {
		RollNumberRequest request=new RollNumberRequest(1, 0);
		ServerModel aGame=gamesList.get(1);
		
		try {
			moves.rollNumber(request, cookie);
		} catch (InvalidMovesRequest e) {
			assertEquals("Should have thrown 'Error: invalid roll number request'","Error: invalid roll number request",e.getMessage());
		}
		aGame=gamesList.get(2);
		cookie=new CookieParams("Bobby", "bobby", 0, 2);
		request=new RollNumberRequest(6,0);
		int player0Resources=aGame.getPlayers().get(0).getResourceCount();
		int player1Resources=aGame.getPlayers().get(1).getResourceCount();
		int player2Resources=aGame.getPlayers().get(2).getResourceCount();
		int player3Resources=aGame.getPlayers().get(3).getResourceCount();
		try {
			moves.rollNumber(request, cookie);
			assertEquals("Player 0 should have more resources.",player0Resources+1,aGame.getPlayers().get(0).getResources().totalResourcesCount());
			assertEquals("Player 1 should have more resources.",player1Resources+0,aGame.getPlayers().get(1).getResources().totalResourcesCount());
			assertEquals("Player 2 should have more resources.",player2Resources+0,aGame.getPlayers().get(2).getResources().totalResourcesCount());
			assertEquals("Player 3 should have more resources.",player3Resources+0,aGame.getPlayers().get(3).getResources().totalResourcesCount());
			request=new RollNumberRequest(10,0);
			player0Resources=aGame.getPlayers().get(0).getResourceCount();
			player1Resources=aGame.getPlayers().get(1).getResourceCount();
			player2Resources=aGame.getPlayers().get(2).getResourceCount();
			player3Resources=aGame.getPlayers().get(3).getResourceCount();
			moves.rollNumber(request, cookie);
			assertEquals("Player 0 should have more resources.",player0Resources+0,aGame.getPlayers().get(0).getResources().totalResourcesCount());
			assertEquals("Player 1 should have more resources.",player1Resources+1,aGame.getPlayers().get(1).getResources().totalResourcesCount());
			assertEquals("Player 2 should have more resources.",player2Resources+0,aGame.getPlayers().get(2).getResources().totalResourcesCount());
			assertEquals("Player 3 should have more resources.",player3Resources+1,aGame.getPlayers().get(3).getResources().totalResourcesCount());
		} catch (InvalidMovesRequest e) {
			System.out.println(e.getMessage());
		}
	}