### Question:
PayloadClient { public static Optional<String> snapshotFormat(String vmId, String identityUrl) throws JsonProcessingException { SnapshotAction payloadResult = new SnapshotAction(); payloadResult.setVmId(vmId); payloadResult.setIdentityUrl(identityUrl); 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 snapshotFormatTest() throws Exception { String payloadResult = "{\"vm-id\":\"vmId1\",\"identity-url\":\"identityUrl1\"}"; Optional<String> payloadClient = PayloadClient.snapshotFormat("vmId1", "identityUrl1"); assertEquals(payloadResult, payloadClient.get()); }