### Question:
AbstractTableConfigHelper implements TableConfigHelper { protected void setLocalityGroupConfigurationIfNecessary(String tableName, Map<String,Set<Text>> newLocalityGroups, TableOperations tops, Logger log) throws AccumuloException, TableNotFoundException, AccumuloSecurityException { if (areLocalityGroupsConfigured(tableName, newLocalityGroups, tops)) { log.debug("Verified the following locality groups are configured for " + tableName + ": " + newLocalityGroups); return; } log.info("Creating the locality groups for " + tableName + ": " + newLocalityGroups); Map<String,Set<Text>> localityGroups = tops.getLocalityGroups(tableName); for (Map.Entry<String,Set<Text>> entry : newLocalityGroups.entrySet()) { Set<Text> families = localityGroups.get(entry.getKey()); if (families == null) { families = new HashSet<>(); localityGroups.put(entry.getKey(), families); } families.addAll(entry.getValue()); } tops.setLocalityGroups(tableName, localityGroups); log.info("Reset the locality groups for " + tableName + " to " + localityGroups); }  @Override abstract void setup(String tableName, Configuration config, Logger log); @Override abstract void configure(TableOperations tops); static void setPropertyIfNecessary(String tableName, String propertyName, String propertyValue, TableOperations tops, Logger log); static Map<String,String> generateInitialTableProperties(); static Map<String,String> generateAggTableProperties(List<CombinerConfiguration> aggregators);  }### Answer:
@Test public void testSetLocalityGroupConfigurationIfNecessary() throws AccumuloSecurityException, AccumuloException, TableNotFoundException { AbstractTableConfigHelperTest.logger.info("AbstractTableConfigHelperTest.testSetLocalityGroupConfigurationIfNecessary() called."); try { AbstractTableConfigHelperTest.TestAbstractTableConfigHelperImpl uut = new AbstractTableConfigHelperTest.TestAbstractTableConfigHelperImpl(); Assert.assertNotNull("AbstractTableConfigHelper.cTor failed to create an instance", uut); uut.parent = this; uut.exposeSetLocalityGroupConfigurationIfNecessary(); } finally { AbstractTableConfigHelperTest.logger.info("AbstractTableConfigHelperTest.testSetLocalityGroupConfigurationIfNecessary() completed."); } }