tester.startPage(WorkspacePage.class);
tester.assertRenderedPage(WorkspacePage.class);
tester.assertNoErrorMessage();
//assert only cite workspace visible
DataView dv = (DataView) tester.getComponentFromLastRenderedPage("table:listContainer:items");
assertEquals(1, dv.size());
//the actual web request is finished, so we need to fake another one
AdminRequest.start(new Object());
assertEquals(1, dv.getDataProvider().size());
WorkspaceInfo ws = (WorkspaceInfo) dv.getDataProvider().iterator(0, 1).next();
assertEquals("cite", ws.getName());
}