@BeforeClass
  public static void setUpBeforeClass() throws Exception {
    util = new HBaseTestingUtil();
    util.getConfiguration().setBoolean(CoprocessorHost.ABORT_ON_ERROR_KEY, false);
    util.startMiniCluster();
  }
Do the complex testing of constraints against a minicluster
hbase-server/src/test/java/org/apache/hadoop/hbase/constraint/TestConstraint.java