### Question:
Float64 extends Message { public static Float64 fromJsonObject(JsonObject jsonObject) { double data = jsonObject.containsKey(Float64.FIELD_DATA) ? jsonObject .getJsonNumber(Float64.FIELD_DATA).doubleValue() : 0; return new Float64(data); } Float64();  Float64(double data); double getData(); @Override Float64 clone(); static Float64 fromJsonString(java.lang.String jsonString); static Float64 fromMessage(Message m); static Float64 fromJsonObject(JsonObject jsonObject); static final java.lang.String FIELD_DATA; static final java.lang.String TYPE; }### Answer:
@Test public void testFromJsonObject() { JsonObject jsonObject = Json.createObjectBuilder() .add(Float64.FIELD_DATA, f1.getData()).build(); Float64 data = Float64.fromJsonObject(jsonObject); assertEquals(f1.toString(), data.toString()); assertEquals(f1.toJsonObject(), data.toJsonObject()); assertEquals(f1.getMessageType(), data.getMessageType()); assertEquals(f1.getData(), data.getData(), 0); assertNotSame(f1, data); assertNotSame(f1.toString(), data.toString()); assertNotSame(f1.toJsonObject(), data.toJsonObject()); }