@Test
public void testDoCloseConnection_NotTransactionalContext()
        throws NamingException {

    TransactionSynchronizationManager.bindResource(contextSourceMock,
            holder);
    DirContext dirContextMock2 = mock(DirContext.class);
    tested.doCloseConnection(dirContextMock2, contextSourceMock);
    verify(dirContextMock2).close();
}