- uc = cookie(new URL("https://" + getServerName() + ViewOrgPage.DEFAULT_PATH + "/" + o1.getId()).openConnection(), session2);
- assertEquals(200, ((HttpURLConnection) uc).getResponseCode());
- uc = cookie(new URL("https://" + getServerName() + ViewOrgPage.DEFAULT_PATH + "/" + o2.getId()).openConnection(), session2);
- assertEquals(404, ((HttpURLConnection) uc).getResponseCode());
+ uc = get(session2, ViewOrgPage.DEFAULT_PATH + "/" + o1.getId());
+ assertEquals(403, ((HttpURLConnection) uc).getResponseCode());
+ uc = get(session2, ViewOrgPage.DEFAULT_PATH + "/" + o2.getId());
+ assertEquals(403, ((HttpURLConnection) uc).getResponseCode());