new FacesRequest() {
protected void invokeApplication() throws Exception {
EntityManager em = (EntityManager) getInstance("restrictedEntityManager");
WikiComment comment = (WikiComment)
em.createQuery("select c from WikiComment c where c.id = :id")
.setParameter("id", 13l)
.getSingleResult();
assert comment.getSubject().equals("Four");
assert comment.getParent().getId().equals(6l);
assertEquals(comment.getPermURL(".lace"), "6.lace#comment13");