public static boolean haveSameId(Note note, Note currentNote) {
    return currentNote != null
        && currentNote.get_id() != null
        && currentNote.get_id().equals(note.get_id());

  }
@Test
  public void haveSameIdShouldSucceed() {
    var note1 = getNote(3L, "test title", "test content");
    var note2 = getNote(3L, "different test title", "different test content");

    assertTrue(NotesHelper.haveSameId(note1, note2));
  }