}
private void ensureFactoryRegistered() {
int numberOfFactories = factoryManager.getDeploymentFactories().length;
if(numberOfFactories == 0) {
factoryManager.registerDeploymentFactory(new MockDeploymentFactory());
}
assertTrue("We should have a registered DeploymentFactory", numberOfFactories > 0);
}