@Test
public void testCustomSecurityContext() throws ConnectionException {
TestSecurityContext tsc = new TestSecurityContext();
tsc.setForceSecurityContext(new ForceSecurityContext());
GetUserInfoResult userInfo = new GetUserInfoResult();
userInfo.setOrganizationId(ORG_ID);
userInfo.setUserId(USER_ID);
userInfo.setUserName(USERNAME);
userInfo.setUserLanguage(USER_LANGUAGE);
userInfo.setUserLocale(USER_LOCALE);
userInfo.setUserTimeZone(USER_TIMEZONE);
tsc.init(userInfo);
Assert.assertEquals(tsc.getOrgId(), ORG_ID);
Assert.assertEquals(tsc.getUserId(), USER_ID);
Assert.assertEquals(tsc.getUserName(), USERNAME);