StreamEventsSlice { @NotNull public List<CommonEvent> getEvents() { return Collections.unmodifiableList(events); } StreamEventsSlice(final long fromEventNumber,
            @Nullable final List<CommonEvent> events, final long nextEventNumber,
            final boolean endOfStream); long getFromEventNumber(); @NotNull List<CommonEvent> getEvents(); long getNextEventNumber(); boolean isEndOfStream(); @Override final int hashCode(); @Override final boolean equals(Object obj); @NotNull final String toDebugString(); @Override final String toString();  }
@Test public void testNullList() { assertThat(new StreamEventsSlice(FROM, null, NEXT, EOS).getEvents()).isEmpty(); }