--- old/test/javax/xml/jaxp/unittest/transform/Bug4693341Test.java 2016-07-18 00:51:43.116376271 -0700 +++ new/test/javax/xml/jaxp/unittest/transform/Bug4693341Test.java 2016-07-18 00:51:42.986441272 -0700 @@ -37,6 +37,7 @@ import javax.xml.transform.stream.StreamSource; import org.testng.Assert; +import org.testng.annotations.Listeners; import org.testng.annotations.Test; import org.xml.sax.InputSource; import org.xml.sax.helpers.DefaultHandler; @@ -45,6 +46,7 @@ * @bug 4693341 * @summary Test transform with external dtd. */ +@Listeners({jaxp.library.FilePolicy.class}) public class Bug4693341Test { // save dtd file to current working directory to avoid writing into source repository public void copyDTDtoWorkDir() throws IOException {