@Test
public void testDecodeRequest() throws Exception {

  String json = "{" +
          "objectType : ['objectType']," +
          "factType : ['factType']," +
          "objectValue : ['objectValue']," +
          "factValue : ['factValue']," +
          "origin : ['origin']," +
          "minimum : 0.1," +
          "maximum : 0.2," +
          "dimension : 'trust'," +
          "before : '2016-11-30T15:47:00Z'," +
          "after : '2016-11-30T15:47:01Z'," +
          "limit : 25," +
          "query : 'g.out()'" +
          "}";
  TraverseByObjectSearchRequest request = getMapper().readValue(json, TraverseByObjectSearchRequest.class);
  assertEquals(SetUtils.set("objectType"), request.getObjectType());
  assertEquals(SetUtils.set("factType"), request.getFactType());
  assertEquals(SetUtils.set("objectValue"), request.getObjectValue());
  assertEquals(SetUtils.set("factValue"), request.getFactValue());
  assertEquals(SetUtils.set("origin"), request.getOrigin());
  assertEquals(0.1f, request.getMinimum(), 0.0);
  assertEquals(0.2f, request.getMaximum(), 0.0);
  assertEquals(Dimension.trust, request.getDimension());
  assertEquals(1480520820000L, request.getBefore().longValue());
  assertEquals(1480520821000L, request.getAfter().longValue());
  assertEquals(25, request.getLimit().intValue());
  assertEquals("g.out()", request.getQuery());
}