List rl = em.getRules();
assertEquals(4, rl.size());
CreateObjectRule rule1 = (CreateObjectRule) rl.get(0);
assertEquals("package.Foo1", rule1.getClassName());
ReadAttributeRule rule2 = (ReadAttributeRule) rl.get(1);
assertEquals("bazomatic", rule2.getPropertyName());
assertEquals("bar", rule2.getAttributeName());