public static void assertErrors(HBaseFsck fsck, ERROR_CODE[] expectedErrors) {
    List<ERROR_CODE> errs = fsck.getErrors().getErrorList();
    Collections.sort(errs);
    List<ERROR_CODE> expErrs = Lists.newArrayList(expectedErrors);
    Collections.sort(expErrs);
    assertEquals(expErrs, errs);
  }
Runs hbck with the -sidelineCorruptHFiles option
@param table table constraint
hbase-server/src/test/java/org/apache/hadoop/hbase/util/hbck/HbckTestingUtil.java