@Test(groups = "integration")
  public void createCreditCardTest() throws PayPalRESTException {
    logger.info("**** Create CreditCard ****");
    logger.info("Generated Access Token = " + TokenHolder.accessToken);

    CreditCard creditCard = new CreditCard();
    creditCard.setExpireMonth(EXPMONTH);
    creditCard.setExpireYear(EXPYEAR);
    creditCard.setNumber(NUMBER);
    creditCard.setType(TYPE);
    this.creditCard = creditCard.create(TokenHolder.accessToken);
    logger.info("Request = " + CreditCard.getLastRequest());
    logger.info("Response = " + CreditCard.getLastResponse());
    logger.info("Credit Card created with ID = " + this.creditCard.getId());
    Assert.assertEquals(true, "ok".equalsIgnoreCase(this.creditCard.getState()));
    logger.info("Created Credit Card status = " + this.creditCard.getState());
    createdCreditCardId = this.creditCard.getId();
  }
 public static CreditCard createDummyCreditCard() {
   CreditCard creditCard = new CreditCard();
   creditCard.setBillingAddress(BILLINGADDRESS);
   creditCard.setExpireMonth(EXPMONTH);
   creditCard.setExpireYear(EXPYEAR);
   creditCard.setFirstName(FIRSTNAME);
   creditCard.setLastName(LASTNAME);
   creditCard.setNumber(NUMBER);
   creditCard.setType(TYPE);
   creditCard.setCvv2(CVV2);
   creditCard.setBillingAddress(BILLINGADDRESS);
   creditCard.setId(ID);
   creditCard.setExternalCustomerId(EXTERNAL_CUSTOMER_ID);
   creditCard.setState(STATE);
   creditCard.setValidUntil(VALIDUNTIL);
   List<Links> links = new ArrayList<Links>();
   links.add(LinksTestCase.createLinks());
   creditCard.setLinks(links);
   return creditCard;
 }