PaymentRequest implements Serializable { public void setAccountOnFile(AccountOnFile accountOnFile) { if (accountOnFile == null) { throw new InvalidParameterException("Error setting accountOnFile, accountOnFile may not be null"); } this.accountOnFile = accountOnFile; }  Boolean getTokenize(); void setTokenize(Boolean tokenize); List<ValidationErrorMessage> validate(); void setValue(String paymentProductFieldId, String value); String getValue(String paymentProductFieldId); void removeValue(String paymentProductFieldId); FormatResult getMaskedValue(String paymentProductFieldId, String newValue, String oldValue, Integer cursorIndex); String getUnmaskedValue(String paymentProductFieldId, String value); Map<String, String> getValues(); Map<String, String> getUnmaskedValues(); Map<String, String> getMaskedValues(); void mergePaymentRequest(PaymentProduct paymentProduct); void setPaymentProduct(PaymentProduct paymentProduct); void setAccountOnFile(AccountOnFile accountOnFile); void removeAccountOnFile(); PaymentProduct getPaymentProduct(); AccountOnFile getAccountOnFile();  }
@Test public void testValidateSucceedsForAccountOnFileVisaWithChangedFields() { PaymentRequest accountOnFileVisaChangedValuesRequest = new PaymentRequest(); accountOnFileVisaChangedValuesRequest.setAccountOnFile(accountOnFileVisa); }