ContextSourceTransactionManager extends
        AbstractPlatformTransactionManager implements InitializingBean { protected void doRollback(DefaultTransactionStatus status) { delegate.doRollback(status); }  ContextSource getContextSource(); void setContextSource(ContextSource contextSource); void setRenamingStrategy(TempEntryRenamingStrategy renamingStrategy); void afterPropertiesSet();  }
@Test public void testDoRollback() { DirContextHolder expectedContextHolder = new DirContextHolder(null, contextMock); expectedContextHolder.setTransactionOperationManager(transactionDataManagerMock); TransactionSynchronizationManager.bindResource(contextSourceMock, expectedContextHolder); CompensatingTransactionObject transactionObject = new CompensatingTransactionObject(null); transactionObject.setHolder(expectedContextHolder); tested.doRollback(new DefaultTransactionStatus(transactionObject, false, false, false, false, null)); verify(transactionDataManagerMock).rollback(); }