assertTrue("isLink", VFSUtils.isLink(linkURL.getPath()));
Properties props = new Properties();
InputStream linkIS = linkURL.openStream();
List<LinkInfo> infos = VFSUtils.readLinkInfo(linkIS, linkURL.getPath(), props);
assertEquals("LinkInfo count", 2, infos.size());
LinkInfo classesInfo = null;
LinkInfo libInfo = null;
for(LinkInfo info :infos)
{
if( info.getName().equals("WEB-INF/classes") )
classesInfo = info;
else if(info.getName().equals("WEB-INF/lib") )
libInfo = info;
}
assertNotNull("classesInfo", classesInfo);
assertEquals("classesInfo.target", classesURL.toURI(), classesInfo.getLinkTarget());
assertNotNull("libInfo", libInfo);
assertEquals("libInfo.target", libURL.toURI(), libInfo.getLinkTarget());
}