### Question:
ReplicationConfigurationUtil { public static boolean isEnabled(KeyExtent extent, AccumuloConfiguration conf) { if (extent.isMeta() || extent.isRootTablet()) { return false; } return conf.getBoolean(Property.TABLE_REPLICATION); }  static boolean isEnabled(KeyExtent extent, AccumuloConfiguration conf);  }### Answer:
@Test public void rootTableExtent() { KeyExtent extent = new KeyExtent(RootTable.ID, null, null); assertFalse("The root table should never be replicated", ReplicationConfigurationUtil.isEnabled(extent, conf)); }
@Test public void metadataTableExtent() { KeyExtent extent = new KeyExtent(MetadataTable.ID, null, null); assertFalse("The metadata table should never be replicated", ReplicationConfigurationUtil.isEnabled(extent, conf)); }
@Test public void rootTableExtentEmptyConf() { KeyExtent extent = new KeyExtent(RootTable.ID, null, null); assertFalse("The root table should never be replicated", ReplicationConfigurationUtil.isEnabled(extent, new ConfigurationCopy(new HashMap<>()))); }
@Test public void metadataTableExtentEmptyConf() { KeyExtent extent = new KeyExtent(MetadataTable.ID, null, null); assertFalse("The metadata table should never be replicated", ReplicationConfigurationUtil.isEnabled(extent, new ConfigurationCopy(new HashMap<>()))); }
@Test public void regularTable() { KeyExtent extent = new KeyExtent(TableId.of("1"), new Text("b"), new Text("a")); assertTrue("Table should be replicated", ReplicationConfigurationUtil.isEnabled(extent, conf)); }
@Test public void regularNonEnabledTable() { KeyExtent extent = new KeyExtent(TableId.of("1"), new Text("b"), new Text("a")); assertFalse("Table should not be replicated", ReplicationConfigurationUtil.isEnabled(extent, new ConfigurationCopy(new HashMap<>()))); }