@Test public void shouldConvert() throws Exception { RequestMap expectedMap = new RequestMap(); expectedMap.putMap(new HashMap<String, String>() {{ put("transactionCode", "code"); }}); RequestMap map = mapConverter.convert(transactionIdentify); assertEquals(expectedMap, map); }
@Override protected void convert(RequestMap requestMap, TransactionIdentify transactionIdentify) { requestMap.putString("transactionCode", transactionIdentify.getCode()); requestMap.putMap(PARAMETER_MC.convert(transactionIdentify.getParameters())); }
TransactionCancellationV2MapConverter extends
    AbstractMapConverter<TransactionIdentify> { @Override protected void convert(RequestMap requestMap, TransactionIdentify transactionIdentify) { requestMap.putString("transactionCode", transactionIdentify.getCode()); requestMap.putMap(PARAMETER_MC.convert(transactionIdentify.getParameters())); } }
TransactionCancellationV2MapConverter extends
    AbstractMapConverter<TransactionIdentify> { @Override protected void convert(RequestMap requestMap, TransactionIdentify transactionIdentify) { requestMap.putString("transactionCode", transactionIdentify.getCode()); requestMap.putMap(PARAMETER_MC.convert(transactionIdentify.getParameters())); } TransactionCancellationV2MapConverter(); }
TransactionCancellationV2MapConverter extends
    AbstractMapConverter<TransactionIdentify> { @Override protected void convert(RequestMap requestMap, TransactionIdentify transactionIdentify) { requestMap.putString("transactionCode", transactionIdentify.getCode()); requestMap.putMap(PARAMETER_MC.convert(transactionIdentify.getParameters())); } TransactionCancellationV2MapConverter();  }
TransactionCancellationV2MapConverter extends
    AbstractMapConverter<TransactionIdentify> { @Override protected void convert(RequestMap requestMap, TransactionIdentify transactionIdentify) { requestMap.putString("transactionCode", transactionIdentify.getCode()); requestMap.putMap(PARAMETER_MC.convert(transactionIdentify.getParameters())); } TransactionCancellationV2MapConverter();   }