@Test
  public void testObsoleteMethod() throws IOException {
    List<CoprocessorViolation> violations = validateClass("ObsoleteMethodObserver");
    assertEquals(1, violations.size());

    CoprocessorViolation violation = violations.get(0);
    assertEquals(Severity.WARNING, violation.getSeverity());
    assertEquals(getFullClassName("ObsoleteMethodObserver"), violation.getClassName());
    assertTrue(violation.getMessage().contains("was removed from new coprocessor API"));
  }
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