@Test
public void deserializeTest() {

    JsonArray json = new JsonArray();
    json.add(new JsonPrimitive(12.3));
    json.add(new JsonPrimitive(4.56));
    Center deserialized = centerAdapter.deserialize(json, Center.class, null);
    
    assertThat(deserialized.getX(), is(equalTo(12.3)));
    assertThat(deserialized.getY(), is(equalTo(4.56)));
}