@Test
public void findDocumentsOrderByLastModified() throws Exception {
new FacesRequest() {
protected void invokeApplication() throws Exception {
WikiNodeDAO dao = (WikiNodeDAO)getInstance(WikiNodeDAO.class);
List<WikiDocument> result = dao.findWikiDocuments(2, WikiNode.SortableProperty.lastModifiedOn, false);
assert result.size() == 2;
assert result.get(0).getId().equals(6l);
assert result.get(1).getId().equals(7l);
}
}.run();