public void addNote(Note note, AuthenticationInfo subject) throws IOException {
    addOrUpdateNoteNode(new NoteInfo(note), true);
    noteCache.putNote(note);
  }
@Test
  void testAddNoteRejectsDuplicatePath() throws IOException {

    assertThrows(NotePathAlreadyExistsException.class,
            () -> {
              Note note1 = createNote("/prod/note");
              Note note2 = createNote("/prod/note");

              noteManager.addNote(note1, AuthenticationInfo.ANONYMOUS);
              noteManager.addNote(note2, AuthenticationInfo.ANONYMOUS);
            },
            "Note '/prod/note' existed");
  }