@@ -0,0 +1,2059 @@
+package com.braintreegateway.unittest;%0A%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport com.braintreegateway.Dispute;%0Aimport com.braintreegateway.util.SimpleNodeWrapper;%0Aimport java.math.BigDecimal;%0Aimport java.text.ParseException;%0Aimport com.braintreegateway.testhelpers.CalendarTestUtils;%0A%0Apublic class DisputeTest %7B%0A    @Test%0A    public void includesFields() throws ParseException %7B%0A        String xml = %22%3Cdispute%3E%22 +%0A            %22%3Creceived-date type=%5C%22date%5C%22%3E2017-01-02%3C/received-date%3E%22 +%0A            %22%3Creply-by-date type=%5C%22date%5C%22%3E2017-01-04%3C/reply-by-date%3E%22 +%0A            %22%3Cdate-opened type=%5C%22date%5C%22%3E2017-01-02%3C/date-opened%3E%22 +%0A            %22%3Cdate-won type=%5C%22date%5C%22%3E2017-01-03%3C/date-won%3E%22 +%0A            %22%3Ccurrency-iso-code%3EGBP%3C/currency-iso-code%3E%22 +%0A            %22%3Creason%3Efraud%3C/reason%3E%22 +%0A            %22%3Cstatus%3Ewon%3C/status%3E%22 +%0A            %22%3Ckind%3Echargeback%3C/kind%3E%22 +%0A            %22%3Camount%3E100.00%3C/amount%3E%22 +%0A            %22%3Cid%3Edispute_id%3C/id%3E%22 +%0A            %22%3Ctransaction%3E%22 +%0A            %22  %3Cid%3Etransaction_id%3C/id%3E%22 +%0A            %22  %3Camount%3E500.00%3C/amount%3E%22 +%0A            %22%3C/transaction%3E%22 +%0A            %22%3C/dispute%3E%22;%0A        SimpleNodeWrapper node = SimpleNodeWrapper.parse(xml);%0A%0A        Dispute dispute = new Dispute(node);%0A%0A        assertEquals(CalendarTestUtils.date(%222017-01-02%22), dispute.getReceivedDate());%0A        assertEquals(CalendarTestUtils.date(%222017-01-04%22), dispute.getReplyByDate());%0A        assertEquals(CalendarTestUtils.date(%222017-01-02%22), dispute.getOpenedDate());%0A        assertEquals(CalendarTestUtils.date(%222017-01-03%22), dispute.getWonDate());%0A        assertEquals(Dispute.Reason.FRAUD, dispute.getReason());%0A        assertEquals(Dispute.Status.WON, dispute.getStatus());%0A        assertEquals(Dispute.Kind.CHARGEBACK, dispute.getKind());%0A        assertEquals(new BigDecimal(%22100.00%22), dispute.getAmount());%0A        assertEquals(%22GBP%22, dispute.getCurrencyIsoCode());%0A        assertEquals(%22dispute_id%22, dispute.getId());%0A        assertEquals(%22transaction_id%22, dispute.getTransactionDetails().getId());%0A    %7D%0A%7D%0A

Add basic unit test for Disputes