@Test(expected = MetaException.class)
  public void testAlterPartitionMissingPartitionVals() throws Exception {
    createTable4PartColsParts(client);
    Table t = client.getTable(DB_NAME, TABLE_NAME);
    PartitionBuilder builder = new PartitionBuilder();
    Partition part = builder.inTable(t).build(metaStore.getConf());
    client.alter_partition(DB_NAME, TABLE_NAME, part);
  }
Testing alter_partition(String,String,Partition) ->
        alter_partition_with_environment_context(String,String,Partition,null).
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestAlterPartitions.java