@Test
public void testWorkspaces() throws Exception {

    WorkspaceResource resource = new WorkspaceResource();
    assertEquals(1, resource.getWorkspaces(model.getCurrentPrincipal(),
                                           model.create())
                            .size());
}