--- old/test/javax/xml/jaxp/unittest/stream/EntitiesTest/EntityTest.java 2016-07-21 20:34:20.230027778 -0700 +++ new/test/javax/xml/jaxp/unittest/stream/EntitiesTest/EntityTest.java 2016-07-21 20:34:20.116027778 -0700 @@ -37,11 +37,13 @@ import org.testng.Assert; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; +import org.testng.annotations.Listeners; import org.testng.annotations.Test; /* * @summary Test StAX parses entity. */ +@Listeners({jaxp.library.FilePolicy.class}) public class EntityTest { XMLInputFactory factory = null;