import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static uk.gov.justice.services.messaging.JsonObjectMetadata.metadataOf;
import uk.gov.justice.domain.annotation.Event;
<BUG>import uk.gov.justice.services.common.converter.ObjectToJsonValueConverter;
import uk.gov.justice.services.core.enveloper.exception.InvalidEventException;</BUG>
import uk.gov.justice.services.core.extension.EventFoundEvent;
<BUG>import uk.gov.justice.services.messaging.JsonEnvelope;
import java.util.UUID;</BUG>
import javax.json.JsonObject;

import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static uk.gov.justice.services.messaging.JsonObjectMetadata.metadataOf;
import uk.gov.justice.domain.annotation.Event;
import uk.gov.justice.services.common.converter.ObjectToJsonValueConverter;
import uk.gov.justice.services.common.util.Clock;
import uk.gov.justice.services.core.enveloper.exception.InvalidEventException;
import uk.gov.justice.services.core.extension.EventFoundEvent;
import uk.gov.justice.services.messaging.JsonEnvelope;
import java.time.ZonedDateTime;
import java.util.UUID;
import javax.json.JsonObject;
