HivePartitionManager { public void dropPartition(String tableName, List<String> partitionValues) { try { metaStoreClient.dropPartition(databaseName, tableName, partitionValues, false); } catch (TException e) { throw new MetaStoreException(e); } }  Optional<Partition> addPartition(
      String tableName,
      List<String> partitionValues,
      String location,
      Map<String, String> parameters); Optional<Partition> addPartition(String tableName, List<String> partitionValues, String location); void dropPartition(String tableName, List<String> partitionValues);  }
@Test public void dropPartition() throws Exception { underTest.dropPartition(TABLE, PARTITION_VALUES); verify(metaStoreClient).dropPartition(DATABASE, TABLE, PARTITION_VALUES, false); }
@Test(expected = MetaStoreException.class) public void dropPartition_shouldWrapTException() throws Exception { doThrow(TException.class).when(metaStoreClient).dropPartition(DATABASE, TABLE, PARTITION_VALUES, false); underTest.dropPartition(TABLE, PARTITION_VALUES); }