@Test(expected = IllegalArgumentException.class)
  public void testRemoveNonExistingCoprocessor() throws Exception {
    String className = "org.apache.hadoop.hbase.coprocessor.SimpleRegionObserver";
    TableDescriptor desc =
      TableDescriptorBuilder.newBuilder(TableName.valueOf(name.getMethodName())).build();
    assertFalse(desc.hasCoprocessor(className));
    TableDescriptorBuilder.newBuilder(desc).removeCoprocessor(className).build();
  }
Test removing cps in the table description that does not exist
@throws Exception if removing a coprocessor fails other than IllegalArgumentException
hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestTableDescriptorBuilder.java