@Test
 public void getPaperAfterUpdateTest() {
   LOGGER.debug("getPaperTest()");
   Paper paper = paperService.get("paperId");
   LOGGER.debug("and the paper is {}", paper.toString());
   Assert.assertNotNull(paper);
 }
  @Test
  public void updatePaperTest() {
    LOGGER.debug("updatePaperTest()");
    Paper paper = paperService.get("paperId");
    Assert.assertNotNull(paper);

    LOGGER.debug("change the lastname for updating {}", paper.toString());
    paper.setTitle("hot damn title");
    LOGGER.debug("the lastname is {}", paper.getTitle());
    Assert.assertEquals(true, paperService.updatePaper(paper));
  }
  @Test
  public void savePaper2Test() {
    LOGGER.debug("savePaperTest2");
    Paper paper = new Paper();
    paper.setPaperId("paperId2");
    paper.setTitle("title2");
    paper.setPaperAbstract("paperAbstract2");
    List<String> authorIds = new ArrayList<String>();
    authorIds.add("author3");
    authorIds.add("author2");
    paper.setAuthorIds(authorIds);

    paper.setCreateDate(new Date(System.currentTimeMillis()));
    List<String> keywords = new ArrayList<String>();
    keywords.add("keyword3");
    keywords.add("keyword2");
    paper.setKeywords(keywords);
    paper.setKindOf("kindOf2");
    paper.setContent("content2");
    paper.setLatexBib("latexBib2");
    paper.setUploadDate(new Date(System.currentTimeMillis()));
    paper.setFileName("filename2");
    LOGGER.debug("save the paper");
    Assert.assertEquals(true, paperService.save(paper));
  }