@Test
public final void shouldSerializeAndDeserializeCorrectly() {
String serialized = JSON.defaultJSON().forValue(measurement);
SpeedMeasurement newMeasurement = JSONParser.defaultJSONParser().parse(SpeedMeasurement.class, serialized);
assertTrue(serialized.contains("\"motionDetected\":")); // According to wiki page
assertTrue(serialized.contains("\"speed\":")); // According to wiki page
assertEquals(measurement.getSpeed().getValue(), newMeasurement.getSpeed().getValue());
assertEquals(measurement.getMotion().getValue(), newMeasurement.getMotion().getValue());
}