@Test
    public void testToJSONString() {
        val object = new FacebookObject();
        object.setId(ID);
        object.setName(NAME);
        String objectstr = JsonHelper.toJSONString(object);
        assertTrue(objectstr.equals("{\"id\":\"id\",\"name\":\"name\"}") || objectstr.equals("{\"name\":\"name\",\"id\":\"id\"}"));
    }
This class tests the {@link JsonHelper} class.

@author Jerome Leleu
@since 1.0.0
pac4j-oauth/src/test/java/org/pac4j/oauth/profile/JsonHelperTests.java