### Question:
AlgorithmExecutionResource { public List<String> configurationValuesToJson(List<ConfigurationValue> parameterValues) { JsonConverter<ConfigurationValue> jsonConverter = new JsonConverter<>(); jsonConverter.addMixIn(FileInputGenerator.class, FileInputGeneratorMixIn.class); jsonConverter.addMixIn(TableInputGenerator.class, TableInputGeneratorMixIn.class); jsonConverter.addMixIn(DatabaseConnectionGenerator.class, DatabaseConnectionGeneratorMixIn.class); jsonConverter.addMixIn(RelationalInputGenerator.class, RelationalInputGeneratorMixIn.class); return jsonConverter.toJsonStrings(parameterValues); }  @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 testConfigurationValuesToJson() throws Exception { List<ConfigurationValue> configValues = new ArrayList<>(); configValues.add( new ConfigurationValueString("pathToOutputFile", "path/to/file1", "path/to/file1")); List<String> configJsons = algorithmExecutionResource.configurationValuesToJson(configValues); String expectedJson = "{\"type\":\"configurationValueString\",\"identifier\":\"pathToOutputFile\",\"values\":[\"path/to/file1\",\"path/to/file1\"]}"; assertThat(configJsons, contains(expectedJson)); }