src/test/java/com/squareup/connect/api/CustomersApiTest.java
@Test
    public void retrieveCustomerTest() throws ApiException {
        Customer customer = api.createCustomer(new CreateCustomerRequest()
            .givenName("Amelia")
            .familyName("Earhart")
            .emailAddress("Amelia.Earhart@example.com")).getCustomer();

        RetrieveCustomerResponse response = api.retrieveCustomer(customer.getId());

        assertTrue(response.getErrors().isEmpty());
        assertEquals(customer.getId(), response.getCustomer().getId());
    }
/**
     * RetrieveCustomer
     *
     * Returns details for a single customer.
     *
     * @throws ApiException
     *          if the Api call fails
     */
RetrieveCustomer
Returns details for a single customer.

@throws ApiException
if the Api call fails
RetrieveCustomer Returns details for a single customer . @throws ApiException if the Api call fails
@Test
    public void retrieveCustomerTest() throws ApiException {
        Customer customer = api.createCustomer(new CreateCustomerRequest()
            .givenName("Amelia")
            .familyName("Earhart")
            .emailAddress("Amelia.Earhart@example.com")).getCustomer();
        RetrieveCustomerResponse response = api.retrieveCustomer(customer.getId());
        assertTrue(response.getErrors().isEmpty());
        assertEquals(customer.getId(), response.getCustomer().getId());
    }
@ Test public void retrieveCustomerTest ( ) throws ApiException { Customer customer = api . createCustomer ( new CreateCustomerRequest ( ) . givenName ( "Amelia" ) . familyName ( "Earhart" ) . emailAddress ( "Amelia.Earhart@example.com" ) ) . getCustomer ( ) ; RetrieveCustomerResponse response = api . retrieveCustomer ( customer . getId ( ) ) ; assertTrue ( response . getErrors ( ) . isEmpty ( ) ) ; assertEquals ( customer . getId ( ) , response . getCustomer ( ) . getId ( ) ) ; }
RetrieveCustomer
 Returns details for a single customer.
RetrieveCustomer Returns details for a single customer .