@Test
  public void testSingleInstanceOfHPOForPartitionedTable() throws Exception {
    reset(mockedAuthorizer);
    runCmd("insert overwrite table part partition(position=2,DEPT,SAL)" +
            " select 2,2,2,2" +
            " union all" +
            " select 1,2,3,4" +
            " union all" +
            " select 3,4,5,6");
    Pair<List<HivePrivilegeObject>, List<HivePrivilegeObject>> io = getHivePrivilegeObjectInputs();
    List<HivePrivilegeObject> hpoList = io.getValue();
    Assert.assertEquals(1, hpoList.size());
  }
Test to check, if only single instance of Hive Privilege object is created,
during bulk insert into a partitioned table.
ql/src/test/org/apache/hadoop/hive/ql/security/authorization/plugin/TestHivePrivilegeObjectOwnerNameAndType.java