@Test
public void deserializeTest() {

    JsonArray json = new JsonArray();
    json.add(new JsonPrimitive(12.3));
    json.add(new JsonPrimitive(-4.56));
    json.add(new JsonPrimitive(78.9));
    json.add(new JsonPrimitive(8.76));
    Bbox deserialized = bboxAdapter.deserialize(json, Bbox.class, null);
    assertThat(deserialized.getBbox(), is(equalTo("BOX(12.300000 -4.560000, 78.900000 8.760000)")));
}