### Question:
ArchetypeSerializer { public static String serialize(Archetype archetype) { return serialize(archetype, new Options()); } private  ArchetypeSerializer(Archetype archetype, Options options); static String serialize(Archetype archetype); static String serialize(Archetype archetype, Options options); boolean isEmpty(CObject cobj); void buildCObject(CObject cobj); String getSimpleCommentText(CObject cobj); AdlStringBuilder getBuilder(); Archetype getArchetype(); ArchetypeWrapper getArchetypeWrapper();  }### Answer:
@Test public void testSerialize() throws Exception { Archetype archetypeAlert = TestAdlParser.parseAdl("adl15/repository/openEHR-EHR-EVALUATION.alert.v1.adls"); String serialized = ArchetypeSerializer.serialize(archetypeAlert); write(serialized, "TestSerialize-Alert-v1.adls"); }
@Test public void testSerializeClosedArchetypeSlot() throws Exception { Archetype archetypeAlert = TestAdlParser.parseAdl("adl15/openEHR-EHR-COMPOSITION.slots-filled.v1.adls"); String serialized = ArchetypeSerializer.serialize(archetypeAlert); write(serialized, "Closed-Archetype-Slot.adls"); }
@Test public void testAssumedValueOnQuantituy() throws Exception { Archetype archetype = TestAdlParser.parseAdl("adl14/openEHR-EHR-OBSERVATION.test_assumed.v1.adl"); String serialized = ArchetypeSerializer.serialize(archetype); assertNotNull(serialized); write(serialized, "TestAssumedValueOnQuantity.adl"); }
@Test public void testSerializeQuantity() throws Exception { Archetype archetype = TestAdlParser.parseAdl("adl14/adl-test-entry.c_dv_quantity_full.test.adl"); String serialized = ArchetypeSerializer.serialize(archetype); assertNotNull(serialized); write(serialized, "TestSerializeQuantity.adl"); }
@Test public void testSerializeAttributes() throws Exception { Archetype archetype = TestAdlParser.parseAdl("adl15/openEHR-EHR-COMPOSITION.attributes_a.v1.adls"); String serialized = ArchetypeSerializer.serialize(archetype); assertNotNull(serialized); write(serialized, "TestSerializeAttribute.adls"); }
@Test public void testQuantityTuple() throws Exception { Archetype archetype = TestAdlParser.parseAdl("adl15/tuples/openEHR-EHR-OBSERVATION.quantity_tuple.v1.adls"); String serialized = ArchetypeSerializer.serialize(archetype); }