Configuration config = createConfiguration();
ManagedRepositoryContent repoContent = new ManagedDefaultRepositoryContent();
repoContent.setRepository(
new BeanReplicator().replicateBean( config.findManagedRepositoryById( REPOSITORY_ID ),
ManagedRepository.class ) );
configurationControl.expectAndReturn( configuration.getConfiguration(), config );
repositoryFactoryControl.expectAndReturn( repositoryFactory.getManagedRepositoryContent( REPOSITORY_ID ),
repoContent );