StandardCommand extends StandardEntity<Command<S, R>> implements Command<S, R> { public EventStream<S> events() throws Exception { return EventStream.empty(); } StandardCommand();  StandardCommand(HybridTimestamp timestamp); EventStream<S> events(); EventStream<S> events(Repository repository); @Override EventStream<S> events(Repository repository, LockProvider lockProvider); @Override R result(S state, Repository repository, LockProvider lockProvider); R result(S state, Repository repository); R result(S state); R result();  }
@Test @SneakyThrows public void passthrough() { EventStream<Void> eventStream = new SomeCommand("a").events(null, null); assertTrue(eventStream.getStream().anyMatch(e -> e instanceof SomeEvent)); }