### Question:
ServerConfigurationFactory extends ServerConfiguration { @Override public NamespaceConfiguration getNamespaceConfiguration(NamespaceId namespaceId) { NamespaceConfiguration conf; synchronized (namespaceConfigs) { conf = namespaceConfigs.get(instanceID).get(namespaceId); } if (conf == null) { conf = new NamespaceConfiguration(namespaceId, context, getSystemConfiguration()); conf.setZooCacheFactory(zcf); ConfigSanityCheck.validate(conf); synchronized (namespaceConfigs) { namespaceConfigs.get(instanceID).put(namespaceId, conf); } } return conf; } ServerConfigurationFactory(ServerContext context, SiteConfiguration siteConfig); ServerContext getServerContext(); SiteConfiguration getSiteConfiguration(); synchronized DefaultConfiguration getDefaultConfiguration(); @Override synchronized AccumuloConfiguration getSystemConfiguration(); @Override TableConfiguration getTableConfiguration(TableId tableId); NamespaceConfiguration getNamespaceConfigurationForTable(TableId tableId); @Override NamespaceConfiguration getNamespaceConfiguration(NamespaceId namespaceId);  }### Answer:
@Test public void testGetNamespaceConfiguration() { mockInstanceForConfig(); ready(); NamespaceConfiguration c = scf.getNamespaceConfiguration(NSID); assertEquals(NSID, c.getNamespaceId()); assertSame(c, scf.getNamespaceConfiguration(NSID)); }