pn = pn.getChild(0);
// System.out.println("DEBUG: " + pn.toExplainPlanString());
assertTrue(pn instanceof NestLoopIndexPlanNode);
IndexScanPlanNode indexScan = (IndexScanPlanNode)pn.getInlinePlanNode(PlanNodeType.INDEXSCAN);
assertEquals(IndexLookupType.LT, indexScan.getLookupType());
assertTrue(indexScan.toJSONString().contains("\"TARGET_INDEX_NAME\":\"" +
HSQLInterface.AUTO_GEN_CONSTRAINT_WRAPPER_PREFIX + "ID"));
pn = pn.getChild(0);
assertTrue(pn instanceof SeqScanPlanNode);
// System.out.println("DEBUG: " + pn.toJSONString());
assertTrue(pn.toJSONString().contains("\"TARGET_TABLE_NAME\":\"T\""));