@Test
    public void testGetTransaction() {

        Gateway beanstream = new Gateway("v1", 300200578,
                "4BaD82D9197b4cc4b70a221911eE9f70", // payments API passcode
                "D97D3BE1EE964A6193D17A571D9FBC80", // profiles API passcode
                "4e6Ff318bee64EA391609de89aD4CF5d");// reporting API passcode

        CardPaymentRequest paymentRequest = new CardPaymentRequest();
        paymentRequest.setAmount(30.00)
                .setOrderNumber(getRandomOrderId("get"));
        paymentRequest.getCard()
                .setName("John Doe")
                .setNumber("5100000010001004")
                .setExpiryMonth("12")
                .setExpiryYear("18")
                .setCvd("123");

        try {
            PaymentResponse response = beanstream.payments().makePayment(paymentRequest);
            Assert.assertTrue(response.isApproved());
            
            if (response.isApproved()) {
                Transaction transaction = beanstream.reports().getTransaction(response.id);
                System.out.println("Transaction: " + transaction.getAmount()+ " approved? " + transaction.getApproved());
            }
        } catch (BeanstreamApiException ex) {
            Logger.getLogger(this.getClass().getName()).log(Level.SEVERE,"An error occurred", ex);
            Assert.fail(ex.getMessage());
        }

    }