assertTrue("WEB-INF entry is a DirContext",
webInfEntry instanceof DirContext);
DirContext webInfContext = (DirContext) webInfEntry;
// Check the contents of the WEB-INF context directly
checkList(webInfContext.list(""), webInfNames);
} catch (NamingException e) {
fail("NamingException: " + e);
}