public void testZipWithDeploymentScriptAndClassesCanBeDeployed() throws FileSystemException, MalformedURLException, ClassNotFoundException, IllegalAccessException, NoSuchMethodException, InvocationTargetException, InstantiationException {
DefaultFileSystemManager manager = new DefaultFileSystemManager();
FileObject applicationArchive = getApplicationArchive(manager, jarsDir + "/successful-deploy.jar");
Deployer deployer = new NanoContainerDeployer(manager);
ObjectReference containerRef = deployer.deploy(applicationArchive, getClass().getClassLoader(), null);
PicoContainer pico = (PicoContainer) containerRef.get();
Object zap = pico.getComponentInstance("zap");
assertEquals("Groovy Started", zap.toString());
}