<BUG>eventstore.appendToStream(stream, ExpectedVersion.of(0), asList(events.get(1))).get();} catch (Exception e) {</BUG><CONTEXT>public void appends_S_0em1_1em1_E_S_1e0_E_idempotent() {final String stream = generateStreamName();List<EventData> events = range(0, 2).mapToObj(i -> newTestEvent()).collect(toList());try {eventstore.appendToStream(stream, ExpectedVersion.of(-1), events).get();<extra_id_0>throw Throwables.propagate(e);}assertEquals(events.size(), size(stream));</CONTEXT>
eventstore.appendToStream(stream, ExpectedVersion.of(0), events.get(1)).get();} catch (Exception e) {