}
public void testInMemory() throws Exception
{
DeployerClient mainDeployer = getMainDeployer();
MainDeployerStructure main = (MainDeployerStructure) mainDeployer;
Version v1 = Version.parseVersion("1");
Deployment ad = createDeployment("A");
ClassLoadingMetaData clmd = addClassLoadingMetaData(ad, v1, true, A.class);
clmd.setBlackListable(false);
assertDeploy(mainDeployer, ad);
VFSDeploymentUnit unit = (VFSDeploymentUnit) main.getDeploymentUnit("A");
VirtualFile file = unit.getAttachment(InMemoryClassesDeployer.DYNAMIC_CLASS_KEY, VirtualFile.class);
assertNotNull(file);
assertTrue("dynamic classes should be in the classpath", unit.getClassPath().contains(file));
URL root = unit.getAttachment(InMemoryClassesDeployer.DYNAMIC_CLASS_URL_KEY, URL.class);