{
// Determine some properties
String contextName = metaData.getName() + ":" + metaData.getVersion().toString();
// Create the module
MockLifeCycleClassLoaderPolicyModule mockModule = new MockLifeCycleClassLoaderPolicyModule(metaData, contextName);
BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(contextName, mockModule.getClass().getName());
builder.setConstructorValue(mockModule);
builder.setMode(ControllerMode.MANUAL);
builder.addConstructorParameter(MockClassLoadingMetaData.class.getName(), metaData);
builder.addConstructorParameter(String.class.getName(), contextName);
builder.setNoClassLoader();