BigDecimal withdrawAmount = new BigDecimal(100); PaymentResponse response = withdrawalsService.makeWithdrawalToCoinbase(withdrawAmount, mainType.getCurrency(), account.getId()); assertTrue(response.getId().length() > 0 && response.getAmount().compareTo(withdrawAmount) == 0); log.info("Returned: " + response.getId()); gdaxAccount = accountService.getAccount(gdaxAccount.getId()); assertTrue(gdaxUSDValue.subtract(withdrawAmount).compareTo(gdaxAccount.getBalance()) == 0);
log.info("Returned: " + response.getId());