@@ -0,0 +1,1115 @@
+package io.spine.server.event.store;%0A%0Aimport io.spine.core.Enrichment;%0Aimport io.spine.core.Event;%0Aimport io.spine.core.EventContext;%0Aimport io.spine.server.type.given.GivenEvent;%0Aimport io.spine.testing.core.given.GivenEnrichment;%0Aimport org.junit.jupiter.api.DisplayName;%0Aimport org.junit.jupiter.api.Test;%0A%0Aimport static com.google.common.truth.Truth.assertThat;%0A%0A@DisplayName(%22EEntity should%22)%0Afinal class EEntityTest %7B%0A%0A    @DisplayName(%22clear enrichments from event%22)%0A    @Test%0A    void shouldClearEnrichments() %7B%0A        Enrichment enrichment = GivenEnrichment.withOneAttribute();%0A        Event event = GivenEvent.arbitrary();%0A        EventContext contextWithEnrichment = event%0A                .getContext()%0A                .toVBuilder()%0A                .setEnrichment(enrichment)%0A                .build();%0A        Event eventWithEnrichment = event%0A                .toVBuilder()%0A                .setContext(contextWithEnrichment)%0A                .build();%0A        EEntity entity = EEntity.create(eventWithEnrichment);%0A        Event state = entity.state();%0A        assertThat(state).isEqualTo(event);%0A    %7D%0A%7D%0A

Add EEntity test