@Test
public void stringToValue() {

    assertSame(JSONObject.NULL, JSONObject.stringToValue("null"));
    assertEquals(true, JSONObject.stringToValue("true"));
    assertEquals(false, JSONObject.stringToValue("false"));
    assertEquals(42, JSONObject.stringToValue("42"));
    assertEquals(45.25, JSONObject.stringToValue("45.25"));
    assertEquals(-45.25, JSONObject.stringToValue("-45.25"));
    TestUtil.assertException(() -> JSONObject.stringToValue(null),
            NullPointerException.class,
            null);
}