session = createMock(HttpSession.class);
SerializableValueHolder valueHolder = new SerializableValueHolder();
SerializationHelper helper = new SerializationHelper(new ClassLoaderAwareSerializationStreamFactory(newModuleClassLoader()));
Object clonedObject = helper.clone(valueHolder);
expect(session.getAttribute("myAttribute")).andReturn(clonedObject);
session.setAttribute(eq("myAttribute"), EasyMock.anyObject());
replay(session);