NoParamsStream extends JpaStream { @Override public String toString() { return streamName; } protected  NoParamsStream();  NoParamsStream(@NotNull final StreamId streamId); @Override JpaStreamEvent createEvent(final StreamId streamId, final JpaEvent eventEntry); @Override String toString();  }
@Test public void testCreate() { final StreamId streamId = new SimpleStreamId("AnyName"); final NoParamsStream testee = new NoParamsStream(streamId); assertThat(testee.toString()).isEqualTo(streamId.toString()); assertThat(testee.getState()).isEqualTo(StreamState.ACTIVE); assertThat(testee.getVersion()).isEqualTo(-1); assertThat(testee.isDeleted()).isFalse(); }