@Test
public void testQueueOverwrites() throws IOException {

  CSQueueStore store = new CSQueueStore();
  //root.main
  CSQueue main = createParentQueue("main", root);
  //root.main.A
  CSQueue mainA = createLeafQueue("A", main);
  //root.main.B
  CSQueue newA = createLeafQueue("A", main);
  store.add(main);
  store.add(mainA);
  assertAccessibleByAllNames(store, mainA);
  store.add(newA);
  //this implicitly checks mainA is not longer accessible by it's names
  assertAccessibleByAllNames(store, newA);
}