@Test
public void toJson() {

    final StreamAck original = StreamAck.success(KNOWN_ELEMENT_ID);
    final JsonValue serialized = original.toJson();
    final StreamAck deserialized = StreamAck.fromJson(JsonFactory.newObject(serialized.toString()));
    assertThat(deserialized)
            .isEqualTo(original);
}