VirtualFile ear = createBasicEar();
unit = assertDeploy(ear);
assertArchiveInfoWithDefaultClasspath(unit);
for (DeploymentUnit childUnit: unit.getChildren())
{
ArchiveInfo archiveInfo = childUnit.getAttachment(ArchiveInfo.class);
if (childUnit.getName().endsWith(".war/"))
{
assertNotNull("Null ArchiveInfo", archiveInfo);
assertNonDefaultClasspath(childUnit.getName(), archiveInfo.getClasspath());
}
else
{
assertNull("ArchiveInfo for unit " + childUnit.getName() + " is not null", archiveInfo);
}