public void rename(String oldNamespaceName, String newNamespaceName) throws AccumuloSecurityException, NamespaceNotFoundException, AccumuloException,
NamespaceExistsException {
if (!exists(oldNamespaceName))
throw new NamespaceNotFoundException(oldNamespaceName, oldNamespaceName, "");
if (exists(newNamespaceName))
throw new NamespaceExistsException(newNamespaceName, newNamespaceName, "");
MockNamespace n = acu.namespaces.get(oldNamespaceName);
for (String t : n.getTables(acu)) {
String tt = newNamespaceName + "." + Tables.qualify(t).getSecond();
acu.tables.put(tt, acu.tables.remove(t));