/** * @throws Exception If failed. */ @Test public void testKeepDeserialized() throws Exception { BinaryMarshaller marsh = binaryMarshaller(Arrays.asList(new BinaryTypeConfiguration(SimpleObject.class.getName()))); BinaryObjectImpl po = marshal(simpleObject(), marsh); CacheObjectContext coCtx = new CacheObjectContext(newContext(), null, null, false, false, true, false, false); assert po.value(coCtx, false) == po.value(coCtx, false); po = marshal(simpleObject(), marsh); assert po.deserialize() != po.deserialize(); }