@Test
public void testRecursiveUnion() throws Exception {
if (!shouldRunTest("RecursiveUnion")) {
return;
}
RecursiveUnion tmp1 = new RecursiveUnion();
tmp1.setVarString("RecusiveUnion-1");
RecursiveUnion tmp2 = new RecursiveUnion();
tmp2.setVarString("RecusiveUnion-2");
RecursiveUnionData xData = new RecursiveUnionData();
ChoiceArray xChoice = new ChoiceArray();
xChoice.getItem().add(tmp1);
xChoice.getItem().add(tmp2);
xData.setVarInt(5);
xData.setVarChoiceArray(xChoice);
RecursiveUnion x = new RecursiveUnion();
x.setVarChoice(xData);
RecursiveUnionData yData = new RecursiveUnionData();
ChoiceArray yChoice = new ChoiceArray();
yChoice.getItem().add(tmp1);
yChoice.getItem().add(tmp2);
yData.setVarInt(-5);
yData.setVarChoiceArray(yChoice);
RecursiveUnion yOrig = new RecursiveUnion();
yOrig.setVarChoice(yData);
Holder<RecursiveUnion> y = new Holder<RecursiveUnion>(yOrig);
Holder<RecursiveUnion> z = new Holder<RecursiveUnion>();
RecursiveUnion ret;
if (testDocLiteral) {
ret = docClient.testRecursiveUnion(x, y, z);
} else if (testXMLBinding) {
ret = xmlClient.testRecursiveUnion(x, y, z);
} else {