@Test
void serializeBean()
{

    String json = this.tool.serialize(new MockBean());
    // We can't predict the order in the map.
    assertTrue(json.contains("\"age\":28"));
    assertTrue(json.contains("\"enabled\":true"));
    assertTrue(json.contains("\"grade\":9.48"));
    assertTrue(json.contains("\"items\":[\"one\"]"));
    assertTrue(json.contains("\"name\":\"XWiki\""));
    assertTrue(json.contains("\"parameters\":{\"foo\":\"bar\"}"));
    assertFalse(json.contains("\"transientProperty\":\"transient\""));
}