### Question:
NotesHelper { public static boolean haveSameId (Note note, Note currentNote) { return currentNote != null && currentNote.get_id() != null && currentNote.get_id().equals(note.get_id()); }  static boolean haveSameId(Note note, Note currentNote); static StringBuilder appendContent(Note note, StringBuilder content, boolean includeTitle); static void addAttachments(boolean keepMergedNotes, Note note, ArrayList<Attachment> attachments); static Note mergeNotes(List<Note> notes, boolean keepMergedNotes); static StatsSingleNote getNoteInfos(Note note); static int getWords(Note note); static int getChars(Note note);  }### Answer:
@Test public void haveSameIdShouldSucceed () { Note note1 = getNote(3L, "test title", "test content"); Note note2 = getNote(3L, "different test title", "different test content"); assertTrue(NotesHelper.haveSameId(note1, note2)); }
@Test public void haveSameIdShouldFail () { Note note1 = getNote(1L, "test title", "test content"); Note note2 = getNote(2L, "test title", "test content"); assertFalse(NotesHelper.haveSameId(note1, note2)); }