protected Deployment createSimpleWithAttachment() throws Exception
{
Deployment deployment = createDeployment();
StructureMetaData structure = StructureMetaDataFactory.createStructureMetaData();
MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();
attachments.addAttachment(StructureMetaData.class, structure);
attachments.addAttachment("test", "hello");
DeploymentFactory factory = getDeploymentFactory();
factory.addContext(deployment, "");
return deployment;
}