+ assertEquals("Not correct number of policy types added.", 2, policyTypes.size());
+ assertEquals("Not correct type added.", type1, policyTypes.getType(POLICY_TYPE_1_NAME));
+ assertEquals("Not correct type added.", type2, policyTypes.getType(POLICY_TYPE_2_NAME));
+ assertEquals("Correct nymber of Rics not added to Rics", 2, rics.size());
+
+ Ric firstRic = rics.getRic(FIRST_RIC_NAME);
+ assertNotNull("Ric \"" + FIRST_RIC_NAME + "\" not added to repositpry", firstRic);
+ assertEquals("Not correct Ric \"" + FIRST_RIC_NAME + "\" added to Rics", FIRST_RIC_NAME, firstRic.name());
+ assertEquals("Not correct state for \"" + FIRST_RIC_NAME + "\"", ACTIVE, firstRic.state());
+ assertEquals("Not correct no of types supported", 1, firstRic.getSupportedPolicyTypes().size());
+ assertTrue("Not correct type supported", firstRic.isSupportingType(type1));
+ assertEquals("Not correct no of managed nodes", 1, firstRic.getManagedNodes().size());
+ assertTrue("Not managed by node", firstRic.isManaging(MANAGED_NODE_A));
+
+ Ric secondRic = rics.getRic(SECOND_RIC_NAME);
+ assertNotNull("Ric \"" + SECOND_RIC_NAME + "\" not added to repositpry", secondRic);
+ assertEquals("Not correct Ric \"" + SECOND_RIC_NAME + "\" added to Rics", SECOND_RIC_NAME, secondRic.name());
+ assertEquals("Not correct state for \"" + SECOND_RIC_NAME + "\"", ACTIVE, secondRic.state());
+ assertEquals("Not correct no of types supported", 2, secondRic.getSupportedPolicyTypes().size());
+ assertTrue("Not correct type supported", secondRic.isSupportingType(type1));
+ assertTrue("Not correct type supported", secondRic.isSupportingType(type2));
+ assertEquals("Not correct no of managed nodes", 2, secondRic.getManagedNodes().size());
+ assertTrue("Not correct managed node", secondRic.isManaging(MANAGED_NODE_B));
+ assertTrue("Not correct managed node", secondRic.isManaging(MANAGED_NODE_C));
+ }