* references of an unannotated POJO (section 1.2.7). This test makes sure that the earlier implementation
* is corrected as per the errata. A notable difference is that the interfaces annotated with @Service
* no longer result in references.
*/
public void testUpdatedRule() throws Exception {
JavaImplementation type = javaImplementationFactory.createJavaImplementation();
visitEnd(SomeServiceImpl.class, type);
assertEquals(12, type.getReferenceMembers().size());
assertTrue(type.getReferenceMembers().containsKey("rri1"));
assertTrue(type.getReferenceMembers().containsKey("rri2"));
assertTrue(type.getReferenceMembers().containsKey("rri3"));
assertTrue(type.getReferenceMembers().containsKey("rri4"));
assertTrue(type.getReferenceMembers().containsKey("rria1"));
assertTrue(type.getReferenceMembers().containsKey("rria2"));
assertTrue(type.getReferenceMembers().containsKey("rria3"));
assertTrue(type.getReferenceMembers().containsKey("rria4"));
assertTrue(type.getReferenceMembers().containsKey("rric1"));
assertTrue(type.getReferenceMembers().containsKey("rric2"));
assertTrue(type.getReferenceMembers().containsKey("rric3"));
assertTrue(type.getReferenceMembers().containsKey("rric4"));
assertEquals(16, type.getPropertyMembers().size());
assertTrue(type.getPropertyMembers().containsKey("pnri1"));
assertTrue(type.getPropertyMembers().containsKey("pnri2"));
assertTrue(type.getPropertyMembers().containsKey("pnri3"));
assertTrue(type.getPropertyMembers().containsKey("pnri4"));
assertTrue(type.getPropertyMembers().containsKey("pnria1"));
assertTrue(type.getPropertyMembers().containsKey("pnria2"));
assertTrue(type.getPropertyMembers().containsKey("pnria3"));
assertTrue(type.getPropertyMembers().containsKey("pnria4"));
assertTrue(type.getPropertyMembers().containsKey("pnric1"));
assertTrue(type.getPropertyMembers().containsKey("pnric2"));
assertTrue(type.getPropertyMembers().containsKey("pnric3"));
assertTrue(type.getPropertyMembers().containsKey("pnric4"));
assertTrue(type.getPropertyMembers().containsKey("gen1"));
assertTrue(type.getPropertyMembers().containsKey("gen2"));
assertTrue(type.getPropertyMembers().containsKey("gen3"));
assertTrue(type.getPropertyMembers().containsKey("gen4"));
}