@Test(expected = InvalidOperationException.class)
  public void testAlterPartitionsWithEnvironmentCtxEmptyPartitionList() throws Exception {
    client.alter_partitions(DB_NAME, TABLE_NAME, Lists.newArrayList(), new EnvironmentContext());
  }
Testing
   alter_partitions(String,String,List(Partition),EnvironmentContext) ->
   alter_partitions_with_environment_context(String,String,List(Partition),EnvironmentContext).
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestAlterPartitions.java