### Question:
AlgorithmExecutionResource { public List<String> inputsToJson(List<Input> inputs) { JsonConverter<Input> jsonConverter = new JsonConverter<Input>(); return jsonConverter.toJsonStrings(inputs); }  @POST @Path("/stop/{identifier}") void stopExecution(@PathParam("identifier") String executionIdentifier); @POST @Consumes(Constants.APPLICATION_JSON_RESOURCE_PATH) @Produces(Constants.APPLICATION_JSON_RESOURCE_PATH) Execution executeAlgorithm(AlgorithmExecutionParams params); List<String> configurationValuesToJson(List<ConfigurationValue> parameterValues); List<String> inputsToJson(List<Input> inputs);  }### Answer:
@Test public void testInputsToJson() throws Exception { List<Input> inputValues = new ArrayList<>(); inputValues.add(new Input("myFile")); List<String> inputsJson = algorithmExecutionResource.inputsToJson(inputValues); String expectedJson = "{\"type\":\"Input\",\"id\":0,\"name\":\"myFile\",\"identifier\":\"0\"}"; assertThat(inputsJson, contains(expectedJson)); }