fail();
}
}
public void testMultipleElementReference() {
CheckEligibility2 echCheckEligibility2 = new CheckEligibility2();
AtbRequestCheckEligibility_type0[] atbRequestCheckEligibility = new AtbRequestCheckEligibility_type0[2];
echCheckEligibility2.setAtbRequestCheckEligibility(atbRequestCheckEligibility);
atbRequestCheckEligibility[0] = new AtbRequestCheckEligibility_type0();
atbRequestCheckEligibility[0].setCardNumber("carnumber");
atbRequestCheckEligibility[0].setClientId("clientid");
atbRequestCheckEligibility[0].setExpirationDate("date");
atbRequestCheckEligibility[0].setNameAsOnCard("cardname");
atbRequestCheckEligibility[0].setYearOfRedemption(2);
atbRequestCheckEligibility[1] = new AtbRequestCheckEligibility_type0();
atbRequestCheckEligibility[1].setCardNumber("carnumber");
atbRequestCheckEligibility[1].setClientId("clientid");
atbRequestCheckEligibility[1].setExpirationDate("date");
atbRequestCheckEligibility[1].setNameAsOnCard("cardname");
atbRequestCheckEligibility[1].setYearOfRedemption(2);
try {
OMElement omElement = echCheckEligibility2.getOMElement(CheckEligibility2.MY_QNAME, OMAbstractFactory.getSOAP12Factory());
String omElementString = omElement.toStringWithConsume();
XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(new ByteArrayInputStream(omElementString.getBytes()));
CheckEligibility2 result = CheckEligibility2.Factory.parse(xmlReader);
assertEquals(result.getAtbRequestCheckEligibility()[0].getCardNumber(), "carnumber");
assertEquals(result.getAtbRequestCheckEligibility()[0].getClientId(), "clientid");
assertEquals(result.getAtbRequestCheckEligibility()[0].getExpirationDate(), "date");
assertEquals(result.getAtbRequestCheckEligibility()[0].getNameAsOnCard(), "cardname");
assertEquals(result.getAtbRequestCheckEligibility()[0].getYearOfRedemption(), 2);
assertEquals(result.getAtbRequestCheckEligibility()[1].getCardNumber(), "carnumber");
assertEquals(result.getAtbRequestCheckEligibility()[1].getClientId(), "clientid");
assertEquals(result.getAtbRequestCheckEligibility()[1].getExpirationDate(), "date");
assertEquals(result.getAtbRequestCheckEligibility()[1].getNameAsOnCard(), "cardname");
assertEquals(result.getAtbRequestCheckEligibility()[1].getYearOfRedemption(), 2);
} catch (Exception e) {
fail();
}
}