//create two test Comments, note their ID and persist them
//new root comment with Comment(long lExperimentID, String sExperimentPhaseID)
//please note: phaseID are not correct
CommentManagerImpl manager = CommentManagerImpl.getInstance();
CommentImpl com1 = (CommentImpl)manager.getNewRootComment(1, "setup");
//Comment com1 = new Comment(1, "setup");
//System.out.println("Contains? "+manager.containsComment(1));
commentID1 = dao_r.persistComment(com1);
CommentImpl find_com1 = dao_r.findComment(commentID1);
manager.registerComment(find_com1, find_com1.getExperimentID(),find_com1.getExperimentPhaseID());
System.out.println("XXXContains? "+manager.containsComment(commentID1));
//new root comment
CommentImpl com2 = (CommentImpl)manager.getNewRootComment(2, "evaluation");
commentID2 = dao_r.persistComment(com2);
CommentImpl find_com2 = dao_r.findComment(commentID2);
manager.registerComment(find_com2, find_com2.getExperimentID(),find_com2.getExperimentPhaseID());
System.out.println("XXXContains? "+manager.containsComment(commentID2));
} catch (NamingException e) {
//TODO integrate message into logging mechanism