public void testBshNonMetadataDeploy() throws Throwable
{
MainDeployerImpl main = new MainDeployerImpl();
main.setStructuralDeployers(createStructuralDeployers());
addStructureDeployer(main, new JARStructure());
MockBshDeployer bshDeployer = new MockBshDeployer();
FileStructure fileStructure = new FileStructure();
fileStructure.addFileMatcher(bshDeployer);
addStructureDeployer(main, fileStructure);
DeployersImpl deployers = new DeployersImpl(new AbstractController());
deployers.setMgtObjectCreator(new DefaultManagedObjectCreator());
deployers.addDeployer(bshDeployer);
main.setDeployers(deployers);
VFSDeployment deployment = createDeployment("/nonmetadata", "nmd.jar");
main.deploy(deployment);
assertNotNull(bshDeployer.getScipts());
assertEquals(1, bshDeployer.getScipts().size());
BshScript script = bshDeployer.getScipts().iterator().next();
assertNotNull(script);
assertNotNull(script.getProperties());
assertEquals("root", script.getName());
}