### Question:
PayloadClient { public static Optional<String> healthCheckFormat(String vnfName, String vnfHostIpAddress) throws JsonProcessingException { HealthCheckAction payloadResult = new HealthCheckAction(); RequestParametersHealthCheck requestParams = new RequestParametersHealthCheck(); requestParams.setHostIpAddress(vnfHostIpAddress); payloadResult.setRequestParameters(requestParams); 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 healthCheckFormatTest() throws Exception { String payloadResult = "{\"request-parameters\":{\"host-ip-address\":\"hostIpAddress1\"}}"; Optional<String> payloadClient = PayloadClient.healthCheckFormat("vnfName1", "hostIpAddress1"); assertEquals(payloadResult, payloadClient.get()); }