@Test public void shouldConvert() throws Exception { RequestMap expectedMap = new RequestMap(); expectedMap.putMap(new HashMap<String, String>(){{ put("bankName", "bancodobrasil"); }}); RequestMap map = mapConverter.convert(bank); assertEquals(expectedMap, map); }
@Override protected void convert(RequestMap requestMap, Bank bank) { requestMap.putString("bankName", bank.getBankName().getStringName()); }
BankV2MapConverter extends AbstractMapConverter<Bank> { @Override protected void convert(RequestMap requestMap, Bank bank) { requestMap.putString("bankName", bank.getBankName().getStringName()); } }
BankV2MapConverter extends AbstractMapConverter<Bank> { @Override protected void convert(RequestMap requestMap, Bank bank) { requestMap.putString("bankName", bank.getBankName().getStringName()); }  }
BankV2MapConverter extends AbstractMapConverter<Bank> { @Override protected void convert(RequestMap requestMap, Bank bank) { requestMap.putString("bankName", bank.getBankName().getStringName()); }   }
BankV2MapConverter extends AbstractMapConverter<Bank> { @Override protected void convert(RequestMap requestMap, Bank bank) { requestMap.putString("bankName", bank.getBankName().getStringName()); }    }