diff --git a/tst/com/amazon/pay/api/UtilTest.java b/tst/com/amazon/pay/api/UtilTest.java index 2746e05..89391c2 100755 --- a/tst/com/amazon/pay/api/UtilTest.java +++ b/tst/com/amazon/pay/api/UtilTest.java @@ -254,7 +254,9 @@ public void testEnhanceResponseWithShippingAddressList() throws AmazonPayClientE expectedCheckoutSessionResponse.setResponse(expectedShippingAddressListResponse); expectedCheckoutSessionResponse.setRawResponse(expectedShippingAddressListResponse.toString()); - Assert.assertEquals(expectedCheckoutSessionResponse.getRawResponse(), actualCheckoutSessionResponseAfterEnhancing.getRawResponse()); + JSONObject expected = new JSONObject(expectedCheckoutSessionResponse.getRawResponse()); + JSONObject actual = new JSONObject(actualCheckoutSessionResponseAfterEnhancing.getRawResponse()); + Assert.assertTrue(expected.similar(actual)); } @Test