assert getValue("#{documentHome.instance.id}").equals(6l);
}
protected void invokeApplication() throws Exception {
CommentHome commentHome = (CommentHome)getInstance(CommentHome.class);
commentHome.newComment();
commentHome.getInstance().setFromUserName("Foo");
commentHome.getInstance().setFromUserHomepage("http://foo.bar");
commentHome.getInstance().setFromUserEmail("foo@bar.tld");
commentHome.getInstance().setSubject("Some Subject");
commentHome.getTextEditor().setValue("Some Content");
invokeMethod("#{commentHome.persist}");
CommentQuery commentQuery = (CommentQuery)getInstance(CommentQuery.class);
assert commentQuery.getComments().size() == 7;