### Question:
NamespaceConfiguration extends AccumuloConfiguration { @Override public String get(Property property) { String key = property.getKey(); AccumuloConfiguration getParent; if (namespaceId.equals(Namespace.ACCUMULO.id()) && isIteratorOrConstraint(key)) { getParent = null; } else { getParent = parent; } return getPropCacheAccessor().get(property, getPath(), getParent); } NamespaceConfiguration(NamespaceId namespaceId, ServerContext context,
      AccumuloConfiguration parent); AccumuloConfiguration getParentConfiguration(); @Override boolean isPropertySet(Property prop, boolean cacheAndWatch); @Override String get(Property property); @Override void getProperties(Map<String,String> props, Predicate<String> filter); @Override synchronized void invalidateCache(); @Override long getUpdateCount();  }### Answer:
@Test public void testGet_InZK() { Property p = Property.INSTANCE_SECRET; expect(zc.get(ZooUtil.getRoot(iid) + Constants.ZNAMESPACES + "/" + NSID + Constants.ZNAMESPACE_CONF + "/" + p.getKey())).andReturn("sekrit".getBytes(UTF_8)); replay(zc); assertEquals("sekrit", c.get(Property.INSTANCE_SECRET)); }
@Test public void testGet_InParent() { Property p = Property.INSTANCE_SECRET; expect(zc.get(ZooUtil.getRoot(iid) + Constants.ZNAMESPACES + "/" + NSID + Constants.ZNAMESPACE_CONF + "/" + p.getKey())).andReturn(null); replay(zc); expect(parent.get(p)).andReturn("sekrit"); replay(parent); assertEquals("sekrit", c.get(Property.INSTANCE_SECRET)); }