@Test
public void testDoCloseConnection_ActiveTransaction()
        throws NamingException {

    TransactionSynchronizationManager.bindResource(contextSourceMock,
            holder);
    // Context should not be closed.
    verifyNoMoreInteractions(dirContextMock);
    tested.doCloseConnection(dirContextMock, contextSourceMock);
}