--- old/test/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/Bug6846132Test.java 2016-07-18 00:51:23.661108771 -0700 +++ new/test/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/Bug6846132Test.java 2016-07-18 00:51:23.538170271 -0700 @@ -29,6 +29,7 @@ import javax.xml.transform.sax.SAXResult; import org.testng.Assert; +import org.testng.annotations.Listeners; import org.testng.annotations.Test; import org.xml.sax.helpers.DefaultHandler; @@ -36,6 +37,7 @@ * @bug 6846132 * @summary Test createXMLStreamWriter with SAXResult won't throw a NullPointerException. */ +@Listeners({jaxp.library.BasePolicy.class}) public class Bug6846132Test { @Test