@Test
 public void testSaveOrUpdate() throws Exception {
   // get original bo
   EdoReviewerNote edoReviewerNote =
       EdoServiceLocator.getEdoReviewerNoteService().getReviewerNoteById(edoReviewerNoteId);
   assertEquals("reviewer note1", edoReviewerNote.getNote());
   // modify the retrieved bo
   EdoReviewerNoteBo edoReviewerNoteBo = EdoReviewerNoteBo.from(edoReviewerNote);
   edoReviewerNoteBo.setNote("Revised Reviewer note1");
   EdoServiceLocator.getEdoReviewerNoteService()
       .saveOrUpdate(EdoReviewerNoteBo.to(edoReviewerNoteBo));
   // check if the bo has been updated
   edoReviewerNote =
       EdoServiceLocator.getEdoReviewerNoteService().getReviewerNoteById(edoReviewerNoteId);
   assertEquals("Revised Reviewer note1", edoReviewerNote.getNote());
 }
  @Test
  public void testGetReviewerNotesByDossierId() throws Exception {

    List<EdoReviewerNote> edoReviewerNotes =
        EdoServiceLocator.getEdoReviewerNoteService().getReviewerNotesByDossierId("1000");
    assertEquals("returned the correct number of results", 4, edoReviewerNotes.size());
  }
  @Test
  public void testGetReviewerNoteById() throws Exception {

    EdoReviewerNote edoReviewerNote =
        EdoServiceLocator.getEdoReviewerNoteService().getReviewerNoteById(edoReviewerNoteId);
    assertEquals("1000", edoReviewerNote.getEdoReviewerNoteId());
  }
  @Test
  public void testGetReviewerNotesByUserPrincipalId() throws Exception {

    List<EdoReviewerNote> edoReviewerNotes =
        EdoServiceLocator.getEdoReviewerNoteService()
            .getReviewerNotesByUserPrincipalId("reviewChair");
    assertEquals("returned the correct number of results", 2, edoReviewerNotes.size());
  }