@Before
  public void before() throws IOException {
    this.tableName = TableName.valueOf(this.name.getMethodName());
    // Create a table. Has one region at least.
    TEST_UTIL.createTable(this.tableName, Bytes.toBytes("cf"));

  }
Tests bypass on a region assign/unassign
hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestRegionBypass.java