@@ -0,0 +1,1946 @@
+/*%0A * Copyright (C) 2007, 2008, 2009, 2011 XStream Committers.%0A * All rights reserved.%0A *%0A * The software in this package is published under the terms of the BSD%0A * style license a copy of which has been included with this distribution in%0A * the LICENSE.txt file.%0A * %0A * Created on 30. September 2011 by Joerg Schaible, renamed from SjsxpStaxWriterTest%0A */%0Apackage com.thoughtworks.xstream.io.xml;%0A%0Aimport junit.framework.Test;%0Aimport junit.framework.TestCase;%0Aimport junit.framework.TestResult;%0Aimport junit.framework.TestSuite;%0A%0Apublic final class SjsxpWriterTest extends AbstractStaxWriterTest %7B%0A    final static String className = %22com.sun.xml.internal.stream.XMLOutputFactoryImpl%22;%0A%0A    public static Test suite() %7B%0A        try %7B%0A            Class.forName(className);%0A            return new TestSuite(SjsxpWriterTest.class);%0A        %7D catch (ClassNotFoundException e) %7B%0A            return new TestCase(SjsxpWriterTest.class.getName() + %22: not available%22) %7B%0A        %0A                public int countTestCases() %7B%0A                    return 1;%0A                %7D%0A        %0A                public void run(TestResult result) %7B%0A                %7D%0A            %7D;%0A        %7D%0A    %7D%0A%0A    protected void assertXmlProducedIs(String expected) %7B%0A        if (!staxDriver.isRepairingNamespace()) %7B%0A            expected = perlUtil.substitute(%22s# xmlns=%5C%22%5C%22##g%22, expected);%0A        %7D%0A        expected = perlUtil.substitute(%22s#%3C(%5C%5Cw+)(%5B%5E%3E%5D*)/%3E#%3C$1$2%3E%3C/$1%3E#g%22, expected);%0A        expected = replaceAll(expected, %22&#xd;%22, %22%5Cr%22);%0A        // attributes are not properly escaped%0A        expected = replaceAll(expected, %22&#xa;%22, %22%5Cn%22);%0A        expected = replaceAll(expected, %22&#x9;%22, %22%5Ct%22);%0A        expected = getXMLHeader() + expected;%0A        assertEquals(expected, buffer.toString());%0A    %7D%0A%0A    protected String getXMLHeader() %7B%0A        return %22%3C?xml version=%5C%221.0%5C%22 ?%3E%22;%0A    %7D%0A%0A    protected StaxDriver getStaxDriver() %7B%0A        return new SjsxpDriver();%0A    %7D%0A%7D

Adjust name schema.