### Question:
JsonValueBuilder { public static JsonValue toJsonArray(final String json) throws JsonException { try { return new JsonValue(MAPPER.readValue(json, List.class)); } catch (IOException e) { throw new JsonException("Failed to parse json", e); } } private  JsonValueBuilder(); static JsonObject jsonValue(); static JsonValue toJsonValue(String json); static JsonValue toJsonArray(final String json); static ObjectMapper getObjectMapper();  }### Answer:
@Test public void shouldParseStringIntoJsonList() { List<String> values = Arrays.asList("abc", "def", "hij"); JsonValue expectJsonValue = JsonValue.json(values); String jsonString = expectJsonValue.toString(); JsonValue actualJsonValue = JsonValueBuilder.toJsonArray(jsonString); assertThat(actualJsonValue.toString()).isEqualTo(jsonString); }