@Test
public void testDoCleanupAfterCompletion() throws Exception {

	DirContextHolder expectedContextHolder = new DirContextHolder(null, contextMock);
	TransactionSynchronizationManager.bindResource(contextSourceMock, expectedContextHolder);
	tested.doCleanupAfterCompletion(new CompensatingTransactionObject(expectedContextHolder));
	assertThat(TransactionSynchronizationManager.getResource(contextSourceMock)).isNull();
	assertThat(expectedContextHolder.getTransactionOperationManager()).isNull();
       verify(contextMock).close();
}