return isEquals && equals((SimpleStruct)x, (SimpleStruct)y);
}
@Test
public void testDerivedChoiceBaseStruct() throws Exception {
DerivedChoiceBaseStruct x = new DerivedChoiceBaseStruct();
//Base
x.setVarFloat(3.14f);
x.setVarInt(new BigInteger("42"));
x.setVarString("BaseStruct-x");
x.setVarAttrString("BaseStructAttr-x");
//Derived
x.setVarStringExt("DerivedChoice-x");
x.setAttrString("DerivedAttr-x");
DerivedChoiceBaseStruct yOrig = new DerivedChoiceBaseStruct();
// Base
yOrig.setVarFloat(-9.14f);
yOrig.setVarInt(new BigInteger("10"));
yOrig.setVarString("BaseStruct-y");
yOrig.setVarAttrString("BaseStructAttr-y");
// Derived
yOrig.setVarFloatExt(1.414f);
yOrig.setAttrString("DerivedAttr-y");
Holder<DerivedChoiceBaseStruct> y = new Holder<DerivedChoiceBaseStruct>(yOrig);
Holder<DerivedChoiceBaseStruct> z = new Holder<DerivedChoiceBaseStruct>();
DerivedChoiceBaseStruct ret;
if (testDocLiteral) {
ret = docClient.testDerivedChoiceBaseStruct(x, y, z);
} else if (testXMLBinding) {
ret = xmlClient.testDerivedChoiceBaseStruct(x, y, z);
} else {