public void testElision() throws SerializationException {
ObjectGraphTestServiceAsync async = getServiceAsync();
SerializationStreamWriter writer = ((SerializationStreamFactory) async).createStreamWriter();
AbstractSerializationStream stream = (AbstractSerializationStream) writer;
assertEquals("Missing flag", expectedObfuscationState(),
stream.hasFlags(AbstractSerializationStream.FLAG_ELIDE_TYPE_NAMES));
SerializableDoublyLinkedNode node = new SerializableDoublyLinkedNode();
writer.writeObject(node);
String s = writer.toString();