### Question:
ConfigureInstanceParamsForVfModule { public void populateInstanceParams(JsonObject jsonObject, List<Map<String, Object>> userParamsFromRequest, String vnfCustomizationUuid, String vfModuleCustomizationUuid) throws PayloadGenerationException { try { Service service = extractServiceFromUserParameters.getServiceFromRequestUserParams(userParamsFromRequest); List<Map<String, String>> instanceParamsList = getInstanceParams(service, vnfCustomizationUuid, vfModuleCustomizationUuid); instanceParamsList.stream().flatMap(instanceParamsMap -> instanceParamsMap.entrySet().stream()) .forEachOrdered(entry -> jsonObject.addProperty(entry.getKey(), entry.getValue())); } catch (Exception e) { throw new PayloadGenerationException("Couldn't able to resolve instance parameters", e); } }  void populateInstanceParams(JsonObject jsonObject, List<Map<String, Object>> userParamsFromRequest,
            String vnfCustomizationUuid, String vfModuleCustomizationUuid);  }### Answer:
@Test public void testInstanceParamsForVfModule() throws Exception { List<Map<String, Object>> userParamsFromRequest = createRequestParameters(); JsonObject jsonObject = new JsonObject(); doReturn(getUserParams()).when(extractServiceFromUserParameters).getServiceFromRequestUserParams(anyList()); configureInstanceParamsForVfModule.populateInstanceParams(jsonObject, userParamsFromRequest, TEST_VNF_MODEL_CUSTOMIZATION_UUID, TEST_VF_MODULE_CUSTOMIZATION_UUID); assertEquals(TEST_INSTANCE_PARAM_VALUE_1, jsonObject.get(TEST_INSTANCE_PARAM_KEY_1).getAsString()); assertEquals(TEST_INSTANCE_PARAM_VALUE_2, jsonObject.get(TEST_INSTANCE_PARAM_KEY_2).getAsString()); }