@Test
  public void testGetInstance() throws Exception {
    assertThat(CompatibilitySingletonFactory.getInstance(MetricsReplicationSource.class),
      instanceOf(MetricsReplicationSourceImpl.class));
  }
Test for the CompatibilitySingletonFactory and building MetricsReplicationSource
hbase-hadoop-compat/src/test/java/org/apache/hadoop/hbase/replication/regionserver/TestMetricsReplicationSourceFactory.java