@Test
public void testCleanUp() {

	MockHttpServletRequest mockHttpServletRequest =
		new MockHttpServletRequest();
	OAuth2StateUtil.save(
		mockHttpServletRequest,
		new OAuth2State(
			RandomTestUtil.randomLong(), RandomTestUtil.randomString(),
			RandomTestUtil.randomString(), RandomTestUtil.randomString()));
	OAuth2StateUtil.cleanUp(mockHttpServletRequest);
	Optional<OAuth2State> oAuth2StateOptional =
		OAuth2StateUtil.getOAuth2StateOptional(mockHttpServletRequest);
	Assert.assertFalse(oAuth2StateOptional.isPresent());
}