import com.sun.tools.doclets.internal.toolkit.util.DocFinder;
import nu.xom.Document;
import nz.colin.mathml.Converter;
import nz.colin.mtef.XMLSerialize;
import nz.colin.mtef.exceptions.ParseException;
import nz.colin.mtef.parsers.MTEFParser;
import nz.colin.mtef.records.MTEF;
import org.junit.Test;

import java.io.IOException;
import java.io.InputStream;
import java.io.PushbackInputStream;

/**
 * Created by colin on 26/08/16.
 */
public class GeneralTest {

    @Test
    public void testParseQuadratic() throws IOException, ParseException {
        InputStream is = GeneralTest.class.getResourceAsStream("/ole/quadratic.bin");
        PushbackInputStream pis = new PushbackInputStream(is);

        pis.read(new byte[28]);

        MTEF mtef = new MTEFParser().parse(pis);
        XMLSerialize serializer = new XMLSerialize();

        mtef.accept(serializer);

        Converter c = new Converter();
        Document mathml = c.doConvert(serializer.getRoot());

        System.out.println(mathml.toXML());

        is.close();
    }

}

@@ -1,66 +1,4 @@
-import com.sun.tools.doclets.internal.toolkit.util.DocFinder;%0A
 impo
@@ -943,16 +943,38 @@
 .toXML()
+.replace(%22&amp;%22, %22&%22)
 );%0A%0A    

remove unused import