@Test
public void shouldSetOpenTransactionToTransactionalWorkWithTxId()
{
WorkTransactionPreparer prepper = new WorkTransactionPreparer();
TransactionWork txWork = mock(TransactionWork.class);
when(txWork.getTransactionId()).thenReturn(1l);
when(txWork.isTransactional()).thenReturn(true);
prepper.prepare(txWork);
verify(txWork).setTransactionMode(WorkTransactionMode.OPEN_TRANSACTION);
verify(txWork, never()).setTransactionId(anyLong());