### Question:
JdbiUnitOfWorkJournal implements UnitOfWorkJournal<K> { public void append(final K id, final UnitOfWork uow) { dao.append(id, uow); } @Inject  JdbiUnitOfWorkJournal(UnitOfWorkJournalDao<K> dao); void append(final K id, final UnitOfWork uow);  }### Answer:
@Test public void insert() { JdbiUnitOfWorkJournal<UUID> writer = new JdbiUnitOfWorkJournal<>(dao); UUID id = UUID.randomUUID(); Command command1 = new IncreaseInventory(UUID.randomUUID(), id, 2, 0l); Event event11 = new InventoryIncreased(id, 1); Event event12 = new InventoryIncreased(id, 1); UnitOfWork uow1 = UnitOfWork.create(UUID.randomUUID(), command1, Arrays.asList(event11, event12)); writer.append(id, uow1); verify(dao).append(id, uow1); }