### Question:
PayloadClient { public static Optional<String> quiesceTrafficFormat(Optional<String> payload, String vnfName) throws JsonProcessingException { QuiesceTrafficAction payloadResult = new QuiesceTrafficAction(); ConfigurationParametersQuiesce configParams = new ConfigurationParametersQuiesce(); String payloadString = payload.isPresent() ? payload.get() : ""; String operationsTimeout = JsonUtils.getJsonValue(payloadString, "operations_timeout"); configParams.setOperationsTimeout(operationsTimeout); configParams.setVnfName(vnfName); payloadResult.setConfigurationParameters(configParams); return Optional.of(mapper.writeValueAsString(payloadResult)); } private  PayloadClient(); static Optional<String> upgradeFormat(Optional<String> payload, String vnfName); static Optional<String> distributeTrafficFormat(Optional<String> payload, String vnfName); static Optional<String> distributeTrafficCheckFormat(Optional<String> payload, String vnfName); static Optional<String> resumeTrafficFormat(String vnfName); static Optional<String> quiesceTrafficFormat(Optional<String> payload, String vnfName); static Optional<String> startStopFormat(String aicIdentity); static Optional<String> healthCheckFormat(String vnfName, String vnfHostIpAddress); static Optional<String> snapshotFormat(String vmId, String identityUrl);  }### Answer:
@Test public void quiesceTrafficFormatTest() throws Exception { String payloadResult = "{\"configuration-parameters\":{\"vnf_name\":\"vnfName1\",\"operations_timeout\":\"operationTimeout\"}}"; JSONObject jsonObject = new JSONObject(); jsonObject.put("operations_timeout", "operationTimeout"); Optional<String> payload = Optional.of(jsonObject.toString()); Optional<String> payloadClient = PayloadClient.quiesceTrafficFormat(payload, "vnfName1"); assertEquals(payloadResult, payloadClient.get()); }