@Test
  public void testTableNoSuchClass() throws IOException {
    List<CoprocessorViolation> violations = validateTable(null, "NoSuchClass");
    assertEquals(1, violations.size());

    CoprocessorViolation violation = violations.get(0);
    assertEquals(getFullClassName("NoSuchClass"), violation.getClassName());
    assertEquals(Severity.ERROR, violation.getSeverity());

    String stackTrace = Throwables.getStackTraceAsString(violation.getThrowable());
    assertTrue(stackTrace.contains("java.lang.ClassNotFoundException: "
      + "org.apache.hadoop.hbase.tool.coprocessor.CoprocessorValidatorTest$NoSuchClass"));
  }
ObsoleteMethod coprocessor implements preCreateTable method which has HRegionInfo parameters.
In our current implementation, we pass only RegionInfo parameters, so this method won't be
called by HBase at all.
hbase-server/src/test/java/org/apache/hadoop/hbase/tool/coprocessor/CoprocessorValidatorTest.java