private List<CoprocessorViolation> validateTable(String jarFile, String className)
    throws IOException {
    Pattern pattern = Pattern.compile(".*");

    Admin admin = mock(Admin.class);

    TableDescriptor tableDescriptor = mock(TableDescriptor.class);
    List<TableDescriptor> tableDescriptors = Lists.newArrayList(tableDescriptor);
    doReturn(tableDescriptors).when(admin).listTableDescriptors(pattern);

    CoprocessorDescriptor coprocessorDescriptor = mock(CoprocessorDescriptor.class);
    List<CoprocessorDescriptor> coprocessorDescriptors = Lists.newArrayList(coprocessorDescriptor);
    doReturn(coprocessorDescriptors).when(tableDescriptor).getCoprocessorDescriptors();

    doReturn(getFullClassName(className)).when(coprocessorDescriptor).getClassName();
    doReturn(Optional.ofNullable(jarFile)).when(coprocessorDescriptor).getJarPath();

    List<CoprocessorViolation> violations = new ArrayList<>();

    validator.validateTables(getClassLoader(), admin, pattern, violations);

    return violations;
  }
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