@Test(expected = MetastoreException.class)
  public void testInvalidOrderForPartitionKeysOnFS() throws Exception {
    Table testTable = createPartitionedTestTable(dbName, tableName, 2, 0);
    // add 10 partitions on the filesystem
    createInvalidPartitionDirsOnFS(testTable, 10);
    checker.checkMetastore(catName, dbName, tableName, null, null);
  }
Tests if there exists a unknown partition directory on the FS with in-valid order of partition
keys than what is specified in table specification.

@throws Exception ex
ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHiveMetaStoreChecker.java