@Test(expected=IllegalStateException.class)
public void testDeserializeWithClassNotFoundException() throws ClassNotFoundException {

  ClassLoader cl = mock(ClassLoader.class);
  when(sessionManager.getSessionClassLoader()).thenReturn(cl);
  assertEquals(now, serializer.deserialize(serializedDate));
}