@Test
public void deserializeAttributeDeletedV1() {

    final String attributePointer = "test1";
    final JsonObject eventJson = JsonFactory.newObjectBuilder()
            .set("event", "thingAttributeDeleted")
            .set("__schemaVersion", 1)
            .set("payload", JsonFactory.newObjectBuilder()
                    .set("thingId", TestConstants.Thing.THING_ID.toString())
                    .set("attributeJsonPointer", attributePointer)
                    .build())
            .build();
    final Object object = toDbObject(eventJson);
    final Object actual = underTest.fromJournal(object, null).events().head();
    assertThat(actual).isInstanceOf(ThingEvent.class);
    final ThingEvent event = (ThingEvent) actual;
    assertThat((CharSequence) event.getThingEntityId()).isEqualTo(TestConstants.Thing.THING_ID);
    assertThat(event.getName()).isEqualTo(AttributeDeleted.NAME);
    assertThat(event.getType()).isEqualTo(AttributeDeleted.TYPE);
    assertThat(event).isInstanceOf(AttributeDeleted.class);
    final AttributeDeleted attributeDeleted = (AttributeDeleted) event;
    assertThat((CharSequence) attributeDeleted.getThingEntityId()).isEqualTo(TestConstants.Thing.THING_ID);
    assertThat(attributeDeleted.getAttributePointer()).isEqualTo(JsonPointer.of(attributePointer));
}