### Question:
CamundaMacroRequestSerializer { public static String getJsonRequest(String requestId, String action, String serviceInstanceId) throws JsonProcessingException { CamundaMacroRequest macroRequest = new CamundaMacroRequest(); macroRequest.setAction(getCamundaInput(action)); macroRequest.setRequestId(getCamundaInput(requestId)); macroRequest.setServiceInstanceId(getCamundaInput(serviceInstanceId)); ObjectMapper mapper = new ObjectMapper(); mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, true); return mapper.writeValueAsString(macroRequest); } private  CamundaMacroRequestSerializer(); static String getJsonRequest(String requestId, String action, String serviceInstanceId);  }### Answer:
@Test public void testWithAllParameters() throws Exception { String jsonRequest = CamundaMacroRequestSerializer.getJsonRequest("requestId", "action", "serviceInstanceId"); Assert.assertNotNull(jsonRequest); Assert.assertEquals( "{\"variables\":{\"mso-request-id\":{\"value\":\"requestId\",\"type\":\"String\"},\"gAction\":{\"value\":\"action\",\"type\":\"String\"},\"serviceInstanceId\":{\"value\":\"serviceInstanceId\",\"type\":\"String\"}}}", jsonRequest); }