@Test void simpleDirectValue() throws NoSuchMethodException { final List<ParameterMeta> params = service .buildParameterMetas(MethodsHolder.class.getMethod("primitives", String.class, String.class, int.class), "def", new BaseParameterEnricher.Context(new LocalConfigurationService(emptyList(), "test"))); final Map<String, String> payload = new HashMap<>(); payload.put("url", "http: final JsonValue value = extractorFactory.visitAndMap(params, payload); assertEquals("{\"url\":\"http: }
public JsonObject visitAndMap(final Collection<ParameterMeta> parameters, final Map<String, String> payload) { return unflatten("", ofNullable(parameters).orElseGet(Collections::emptyList), payload == null ? emptyMap() : payload); }
PayloadMapper { public JsonObject visitAndMap(final Collection<ParameterMeta> parameters, final Map<String, String> payload) { return unflatten("", ofNullable(parameters).orElseGet(Collections::emptyList), payload == null ? emptyMap() : payload); } }
PayloadMapper { public JsonObject visitAndMap(final Collection<ParameterMeta> parameters, final Map<String, String> payload) { return unflatten("", ofNullable(parameters).orElseGet(Collections::emptyList), payload == null ? emptyMap() : payload); }  }
PayloadMapper { public JsonObject visitAndMap(final Collection<ParameterMeta> parameters, final Map<String, String> payload) { return unflatten("", ofNullable(parameters).orElseGet(Collections::emptyList), payload == null ? emptyMap() : payload); }  JsonObject visitAndMap(final Collection<ParameterMeta> parameters, final Map<String, String> payload); }
PayloadMapper { public JsonObject visitAndMap(final Collection<ParameterMeta> parameters, final Map<String, String> payload) { return unflatten("", ofNullable(parameters).orElseGet(Collections::emptyList), payload == null ? emptyMap() : payload); }  JsonObject visitAndMap(final Collection<ParameterMeta> parameters, final Map<String, String> payload);  }