@Test
public void testDoBegin() {

	when(contextSourceMock.getReadWriteContext()).thenReturn(contextMock);
	CompensatingTransactionObject expectedTransactionObject = new CompensatingTransactionObject(null);
	tested.doBegin(expectedTransactionObject, transactionDefinitionMock);
	DirContextHolder foundContextHolder = (DirContextHolder) TransactionSynchronizationManager
			.getResource(contextSourceMock);
	assertThat(foundContextHolder.getCtx()).isSameAs(contextMock);
}