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");