Assert.assertTrue(obj instanceof JsonObject);
JsonObject o = (JsonObject)obj;
Assert.assertTrue(o.has("fieldName"));
Assert.assertEquals(new JsonPrimitive("epsilon"), o.get("fieldName"));
Assert.assertTrue(o.has("owner"));
Assert.assertEquals(new JsonPrimitive("test_data"), o.get("owner"));
Assert.assertTrue(o.has("type"));
Assert.assertEquals(new JsonPrimitive("number"), o.get("type"));
Assert.assertTrue(o.has("attributeName"));
Assert.assertEquals(new JsonPrimitive("host"), o.get("attributeName"));
Assert.assertTrue(o.has("attributeOwner"));
Assert.assertEquals(new JsonPrimitive("BaseEvent"), o.get("attributeOwner"));
Assert.assertTrue(o.has("limitType"));
Assert.assertEquals(new JsonPrimitive("lowest"), o.get("limitType"));
Assert.assertTrue(o.has("limitAmount"));
Assert.assertEquals(new JsonPrimitive(500), o.get("limitAmount"));
Assert.assertTrue(o.has("statsFn"));
Assert.assertEquals(new JsonPrimitive("average"), o.get("statsFn"));
}
}