map.put(new MockBshDeployer(), IOException.class);
map.put(xmlDeployer, RuntimeException.class);
map.put(new SchemaResolverDeployer<Object>(Object.class), JBossXBException.class);
VirtualFile root = new MyVirtualFile();
AbstractVFSDeploymentContext context = new MyVFSDeploymentContext(root, "");
DeploymentUnit unit = context.getDeploymentUnit();
for(AbstractVFSParsingDeployer<?> deployer : map.keySet())
{
// set name to "" to match in deployment
deployer.setName("");