@After
  public void tearDown() {
    ((org.apache.logging.log4j.core.Logger) org.apache.logging.log4j.LogManager
      .getLogger(loggerName)).removeAppender(mockAppender);
  }
This should be in the hbase-logging module but the {@link HBaseClassTestRule} is in hbase-common
so we can only put the class in hbase-common module for now...
hbase-common/src/test/java/org/apache/hadoop/hbase/logging/TestJul2Slf4j.java