@Test(expected = InvalidOperationException.class)
  @ConditionalIgnoreOnSessionHiveMetastoreClient
  public void testRenamePartitionBogusCatalogName() throws Exception {
    List<List<String>> oldValues = createTable4PartColsParts(client);
    List<Partition> oldParts = client.listPartitions(DB_NAME, TABLE_NAME, (short)-1);

    Partition partToRename = oldParts.get(3);
    partToRename.setValues(Lists.newArrayList("2018", "01", "16"));
    client.renamePartition("nosuch", DB_NAME, TABLE_NAME, oldValues.get(3), partToRename, null);
  }
Testing
   renamePartition(String,String,List(String),Partition) ->
   renamePartition(String,String,List(String),Partition).
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestAlterPartitions.java