List l = spec.getInjectSpecifications();
assertEquals(2, l.size());
InjectSpecification i1 = (InjectSpecification) l.get(0);
assertEquals("fred", i1.getProperty());
assertEquals("object", i1.getType());
assertEquals("flintstone", i1.getObject());
assertNotNull(i1.getLocation());
InjectSpecification i2 = (InjectSpecification) l.get(1);
assertEquals("barney", i2.getProperty());
assertEquals("state", i2.getType());
assertEquals("rubble", i2.getObject());
assertNotNull(i2.getLocation());
}