}
@Test
public void testInstanceRetrieval() {
Object id = new Object();
PmParameterManager pm = PmParameterManager.getNewInstance(id);
PmParameterManager.setParameter(id, PmBasicPa.NUM_AGENTS, new Integer(
15));
assertEquals(PmParameterManager.getParameter(id, PmBasicPa.NUM_AGENTS),
new Integer(15));
assertEquals(PmParameterManager.getParameter(PmBasicPa.NUM_AGENTS),
new Integer(10));
assertEquals(pm.getParam(PmBasicPa.NUM_AGENTS), new Integer(15));
pm.setParam(PmBasicPa.NUM_AGENTS, new Integer(42));
assertEquals(pm.getParam(PmBasicPa.NUM_AGENTS), new Integer(42));
assertEquals(PmParameterManager.getParameter(id, PmBasicPa.NUM_AGENTS),
new Integer(42));
assertEquals(PmParameterManager.getParameter(PmBasicPa.NUM_AGENTS),
new Integer(10));
}