    @Test
    public void readReturnsNullOnNotFound() {

        when(eventStore.readStreamEventsForward(any(), anyInt(), anyInt(), anyBoolean()))
                .thenReturn(wrapFuture(new StreamEventsSlice(
                        SliceReadStatus.StreamNotFound,
                        "stream",
                        0,
                        ReadDirection.Forward,
                        null,
                        1,
                        0,
                        false)));
        EventReadResult<Event> response = repository.read("stream");
        Assert.assertNull(response);
    }