UnitOfWork uow = DefaultUnitOfWork.startAndGet();
JpaAggregate aggregate = repository.load(agg.getIdentifier());
aggregate.setMessage("And again");
aggregate.setMessage("And more");
uow.commit();
assertEquals((Long) 1L, aggregate.getVersion());
assertEquals(0L, aggregate.getUncommittedEventCount());
assertEquals(2, capturedEvents.size());
assertEquals(0L, capturedEvents.get(0).getSequenceNumber());