### Question:
AppPropertySetupListener implements ServletContextListener { @Override public void contextInitialized(ServletContextEvent sce) { System.setProperty("com.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize", "true"); }  @Override void contextInitialized(ServletContextEvent sce); @Override void contextDestroyed(ServletContextEvent sce);  }### Answer:
@Test public void testContextInitialized() throws Exception { listener.contextInitialized(sce); assertEquals(System.getProperty("com.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize"), "true"); }