deployment.setMetaDataPath(Collections.singletonList("META-INF"));
VFSDeploymentUnit unit = new AbstractVFSDeploymentUnit(deployment);
deployer.deploy(unit);
try
{
ScanningMetaData metaData = unit.getAttachment(ScanningMetaData.class);
assertNotNull(metaData);
List<PathMetaData> paths = metaData.getPaths();
assertNotNull(paths);
assertEquals(2, paths.size());
PathMetaData pmd = paths.get(0);
assertNotNull(pmd);