CardTokenRequest implements Serializable { public String getString() { try { Gson gson = new Gson(); return gson.toJson(this); } catch (NullPointerException e) { e.printStackTrace(); return ""; } } CardTokenRequest();  CardTokenRequest(String cardNumber, String cardCVV,
                            String cardExpiryMonth, String cardExpiryYear, String clientKey); String getCardNumber(); void setCardNumber(String cardNumber); String getCardCVV(); void setCardCVV(String cardCVV); String getCardExpiryMonth(); void setCardExpiryMonth(String cardExpiryMonth); String getCardExpiryYear(); void setCardExpiryYear(String cardExpiryYear); String getClientKey(); void setClientKey(String clientKey); boolean isSecure(); void setSecure(boolean secure); boolean isTwoClick(); void setTwoClick(boolean twoClick); String getBank(); void setBank(String bank); Double getGrossAmount(); void setGrossAmount(Double grossAmount); boolean isSaved(); void setIsSaved(boolean isSaved); String getCardType(); void setCardType(String cardType); String getFormatedCardNumber(); String getFormatedExpiryDate(); String getSavedTokenId(); void setSavedTokenId(String savedTokenId); String getString(); boolean isInstallment(); void setInstallment(boolean installment); int getInstalmentTerm(); void setInstalmentTerm(int instalmentTerm); String getFormattedInstalmentTerm(); ArrayList<String> getBins(); void setBins(ArrayList<String> bins); String getChannel(); void setChannel(String channel); String getType(); void setType(String type); boolean isPoint(); void setPoint(boolean point); String getCurrency(); void setCurrency(String currency); final static String TYPE_CAPTURE; final static String TYPE_AUTHORIZE; }
@Test public void getStringTest() { Assert.assertNotNull(cardTokenRequest.getString()); }