@Test public void shouldConvert() throws Exception { RequestMap expectedMap = new RequestMap(); expectedMap.putMap(new HashMap<String, String>() {{ put("reference", "reference"); put("notificationURL", "notificationUrl"); put("redirectURL", "redirectUrl"); }}); RequestMap map = mapConverter.convert(authorizationRegistration); assertEquals(expectedMap, map); }
@Override protected void convert(RequestMap requestMap, AuthorizationRegistration authorizationRegistration) { requestMap.putString("reference", authorizationRegistration.getReference()); requestMap.putString("notificationURL", authorizationRegistration.getNotificationURL()); requestMap.putString("redirectURL", authorizationRegistration.getRedirectURL()); requestMap.putMap(PERMISSION_V_2_MAP_CONVERTER.convert( authorizationRegistration.getPermissions())); }
AuthorizationRegistrationV2MapConverter extends
    AbstractMapConverter<AuthorizationRegistration> { @Override protected void convert(RequestMap requestMap, AuthorizationRegistration authorizationRegistration) { requestMap.putString("reference", authorizationRegistration.getReference()); requestMap.putString("notificationURL", authorizationRegistration.getNotificationURL()); requestMap.putString("redirectURL", authorizationRegistration.getRedirectURL()); requestMap.putMap(PERMISSION_V_2_MAP_CONVERTER.convert( authorizationRegistration.getPermissions())); } }
AuthorizationRegistrationV2MapConverter extends
    AbstractMapConverter<AuthorizationRegistration> { @Override protected void convert(RequestMap requestMap, AuthorizationRegistration authorizationRegistration) { requestMap.putString("reference", authorizationRegistration.getReference()); requestMap.putString("notificationURL", authorizationRegistration.getNotificationURL()); requestMap.putString("redirectURL", authorizationRegistration.getRedirectURL()); requestMap.putMap(PERMISSION_V_2_MAP_CONVERTER.convert( authorizationRegistration.getPermissions())); } AuthorizationRegistrationV2MapConverter(); }
AuthorizationRegistrationV2MapConverter extends
    AbstractMapConverter<AuthorizationRegistration> { @Override protected void convert(RequestMap requestMap, AuthorizationRegistration authorizationRegistration) { requestMap.putString("reference", authorizationRegistration.getReference()); requestMap.putString("notificationURL", authorizationRegistration.getNotificationURL()); requestMap.putString("redirectURL", authorizationRegistration.getRedirectURL()); requestMap.putMap(PERMISSION_V_2_MAP_CONVERTER.convert( authorizationRegistration.getPermissions())); } AuthorizationRegistrationV2MapConverter();  }
AuthorizationRegistrationV2MapConverter extends
    AbstractMapConverter<AuthorizationRegistration> { @Override protected void convert(RequestMap requestMap, AuthorizationRegistration authorizationRegistration) { requestMap.putString("reference", authorizationRegistration.getReference()); requestMap.putString("notificationURL", authorizationRegistration.getNotificationURL()); requestMap.putString("redirectURL", authorizationRegistration.getRedirectURL()); requestMap.putMap(PERMISSION_V_2_MAP_CONVERTER.convert( authorizationRegistration.getPermissions())); } AuthorizationRegistrationV2MapConverter();   }