}
@Test
public void testSingleReadPartition() throws Exception {
addPartitionInput(newTable(true));
QueryPlan qp = new MockQueryPlan(this);
txnMgr.acquireLocks(qp, ctx, null);
List<HiveLock> locks = ctx.getHiveLocks();
Assert.assertEquals(1, locks.size());
Assert.assertEquals(1,
TxnDbUtil.countLockComponents(((DbLockManager.DbHiveLock) locks.get(0)).lockId));