public void testXMLSerializableSupport() throws Exception {
final MemcachedBackupSession session = _manager.createEmptySession();
session.setValid( true );
final String attributeName = "myxmlserializable";
session.setAttribute( attributeName, new MyXMLSerializable( Runtime.getRuntime() ) );
final Map<String, Object> deserialized =
_transcoder.deserializeAttributes( _transcoder.serializeAttributes( session, session.getAttributesInternal() ) );
assertDeepEquals( deserialized, session.getAttributesInternal() );
final MyXMLSerializable myXMLSerializable = (MyXMLSerializable) deserialized.get( attributeName );
Assert.assertNotNull( myXMLSerializable.getRuntime(), "Transient field runtime should be initialized by XMLFormat" +
" used due to implementation of XMLSerializable." );
}