Union element = (Union) layoutElements.get(0);
Integral tag = element.getUnionTag();
assertEquals("B", tag.getTag());
List unionCases = element.getUnionCases();
assertEquals(2, unionCases.size());
UnionCase firstCase = (UnionCase) unionCases.get(0);
assertTrue(firstCase.hasTag(55));
assertFalse(firstCase.hasTag(23));
List body = firstCase.getBody();
assertEquals(1, body.size());
Integral bodyElement = (Integral) body.get(0);
assertEquals("FH", bodyElement.getTag());
UnionCase secondCase = (UnionCase) unionCases.get(1);
assertTrue(secondCase.hasTag(23));
assertFalse(secondCase.hasTag(55));
body = secondCase.getBody();
assertEquals(0, body.size());
List defaultBody = element.getDefaultCaseBody();
assertEquals(1, defaultBody.size());
Reference ref = (Reference) defaultBody.get(0);
assertEquals("RSH", ref.getTag());