@@ -0,0 +1,2479 @@
+package com.ibm.streamsx.topology.test.api;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotNull;%0A%0Aimport java.io.ByteArrayInputStream;%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.nio.charset.StandardCharsets;%0Aimport java.util.Collections;%0A%0Aimport javax.xml.transform.OutputKeys;%0Aimport javax.xml.transform.Transformer;%0Aimport javax.xml.transform.TransformerFactory;%0Aimport javax.xml.transform.stream.StreamResult;%0Aimport javax.xml.transform.stream.StreamSource;%0A%0Aimport org.junit.Test;%0A%0Aimport com.ibm.streams.operator.types.ValueFactory;%0Aimport com.ibm.streams.operator.types.XML;%0Aimport com.ibm.streamsx.topology.TStream;%0Aimport com.ibm.streamsx.topology.Topology;%0Aimport com.ibm.streamsx.topology.function7.Function;%0Aimport com.ibm.streamsx.topology.test.TestTopology;%0A%0A@SuppressWarnings(%22serial%22)%0Apublic class XMLTupleTest extends TestTopology %7B%0A   %0A    @Test%0A    public void testConstant() throws Exception %7B%0A        %0A        final Topology topology = new Topology();%0A        String sdata = %22%3Cbook%3E%3Ctitle%3EDracula%3C/title%3E%3Cauthor%3EBram Stoker%3C/author%3E%3C/book%3E%22;%0A        byte%5B%5D data = sdata.getBytes(StandardCharsets.UTF_8);%0A        XML xml = ValueFactory.newXML(new ByteArrayInputStream(data));%0A        TStream%3CXML%3E source = topology.constants(Collections.singletonList(xml), XML.class);%0A        assertNotNull(source);%0A        assertEquals(XML.class, source.getTupleClass());%0A        %0A        TStream%3CString%3E out = convertXMLToString(source);%0A        completeAndValidate(out, 10,  sdata);%0A    %7D%0A%0A    private static TStream%3CString%3E convertXMLToString(TStream%3CXML%3E source) %7B%0A        TStream%3CString%3E out = source.transform(new Function%3CXML,String%3E() %7B%0A%0A            @Override%0A            public String apply(XML v) %7B%0A                %0A                StreamSource ss = v.getStreamSource();%0A                %0A                try %7B%0A                    Transformer transformer = TransformerFactory.newInstance().newTransformer();%0A                    transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, %22yes%22);%0A                    %0A                    ByteArrayOutputStream out = new ByteArrayOutputStream();%0A                    %0A                    transformer.transform(ss, new StreamResult(out));%0A                    return new String(out.toByteArray(), StandardCharsets.UTF_8);%0A                %7D catch (Exception e) %7B%0A                    return null;%0A                %7D%0A            %7D%7D, String.class);%0A        return out;%0A    %7D%0A%7D%0A

Add XML type test