	@Test
	public void testCapabilityFactories() {

		roadmRepository = new ROADMRepository("ROADMrepository");
		roadmRepository.setResourceDescriptorRepository(new MockDescriptorRepository());

		roadmRepository.capabilityFactoryAdded(new MockCapabilityFactory("factory1"));
		roadmRepository.capabilityFactoryAdded(new MockCapabilityFactory("factory2"));

		Assert.assertTrue(roadmRepository.getCapabilityFactories().size() == 2);
		Assert.assertNotNull(roadmRepository.getCapabilityFactories().get("factory1"));
		Assert.assertNotNull(roadmRepository.getCapabilityFactories().get("factory2"));

	}