null, null, new AttributeDefinition(35,
AttributeDefinitionBands.CONTEXT_CLASS, name, layout));
List layoutElements = newAttributeBands.getLayoutElements();
assertEquals(1, layoutElements.size());
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());