PostFinancePaymentGatewayImpl extends AbstractPostFinancePaymentGatewayImpl implements PaymentGatewayExternalForm, CallbackAware { void setValueIfNotNull(final Map<String, String> params, final String key, final String value) { if (StringUtils.isNotBlank(value)) { params.put(key, StringUtils.remove(value, '\'')); } }  @Override String getPostActionUrl(); @Override String getSubmitButton(final String locale); @Override Callback convertToCallback(final Map privateCallBackParameters,
                                      final boolean forceProcessing); @Override void preProcess(final Payment payment, final Callback callback, final String processorOperation); @Override void postProcess(final Payment payment, final Callback callback, final String processorOperation); @Override CallbackAware.CallbackResult getExternalCallbackResult(final Map<String, String> callbackResult,
                                                                  final boolean forceProcessing); @Override String getHtmlForm(final String cardHolderName, final String locale, final BigDecimal amount,
                              final String currencyCode, final String orderReference, final Payment payment); @Override Payment authorizeCapture(final Payment payment, final boolean forceProcessing); @Override Payment authorize(final Payment paymentIn, final boolean forceProcessing); @Override Payment reverseAuthorization(final Payment paymentIn, final boolean forceProcessing); @Override Payment capture(final Payment paymentIn, final boolean forceProcessing); @Override Payment voidCapture(final Payment paymentIn, final boolean forceProcessing); @Override Payment refund(final Payment paymentIn, final boolean forceProcessing); @Override Payment createPaymentPrototype(final String operation,
                                          final Map map,
                                          final boolean forceProcessing); @Override PaymentGatewayFeature getPaymentGatewayFeatures();  }
@Test public void testSetValueIfNotNull() throws Exception { final PostFinancePaymentGatewayImpl pg = new PostFinancePaymentGatewayImpl(); final Map<String, String> params = new HashMap<>(); pg.setValueIfNotNull(params, "key", null); assertFalse(params.containsKey("key")); pg.setValueIfNotNull(params, "key", "value"); assertEquals("value", params.get("key")); pg.setValueIfNotNull(params, "key2", "value's"); assertEquals("values", params.get("key2")); }