EmptyEventStore implements EventStore { @Override public void appendAll(Iterable<Event> events) { }  @Override void append(Event event); @Override void appendAll(Iterable<Event> events); @Override void read(EventStreamQuery request, StreamObserver<Event> responseObserver); @Override boolean isOpen(); @Override void registerWith(BoundedContext context); @Override boolean isRegistered(); @Override void close();  }
@Test @DisplayName("do nothing on appendAll(Iterable<Event>)") void notAppendAll() { EventStore store = new EmptyEventStore(); store.appendAll(ImmutableList.of(Event.getDefaultInstance())); assertEmpty(store); }