@Test
public void testIsValidWithDifferentState() {

	MockHttpServletRequest mockHttpServletRequest =
		new MockHttpServletRequest();
	mockHttpServletRequest.setParameter(
		"state", RandomTestUtil.randomString(5));
	OAuth2State oAuth2State = new OAuth2State(
		RandomTestUtil.randomLong(), RandomTestUtil.randomString(),
		RandomTestUtil.randomString(), RandomTestUtil.randomString(5));
	Assert.assertFalse(
		OAuth2StateUtil.isValid(oAuth2State, mockHttpServletRequest));
}