@Test
public void appliesEventCorrectly() {

    final ThingCreatedStrategy strategy = new ThingCreatedStrategy();
    final ThingCreated event = ThingCreated.of(THING, REVISION, TIMESTAMP, DittoHeaders.empty(), METADATA);
    final Thing thingWithEventApplied = strategy.handle(event, null, NEXT_REVISION);
    final Thing expected = THING.toBuilder()
            .setLifecycle(ThingLifecycle.ACTIVE)
            .setRevision(NEXT_REVISION)
            .setModified(TIMESTAMP)
            .setCreated(TIMESTAMP)
            .setMetadata(METADATA)
            .build();
    assertThat(thingWithEventApplied).isEqualTo(expected);
}