@Test(expected = ForbiddenEntityException.class)
public void getConnectorObjectForbiddenTest() {

	String userOneName = "UserOne";
	String eavAttributeName = "EAV_ATTRIBUTE";
	SysSystemDto system = initData();
	Assert.assertNotNull(system);
	IdmIdentityDto identity = helper.createIdentity();
	// Create role with evaluator
	IdmRoleDto role = helper.createRole();
	IdmAuthorizationPolicyDto policyAccount = new IdmAuthorizationPolicyDto();
	policyAccount.setRole(role.getId());
	policyAccount.setGroupPermission(AccGroupPermission.ACCOUNT.getName());
	policyAccount.setAuthorizableType(AccAccount.class.getCanonicalName());
	policyAccount.setEvaluator(ReadAccountByIdentityEvaluator.class);
	authorizationPolicyService.save(policyAccount);
	// Change resources (set state on exclude) .. must be call in transaction
	this.getBean().persistResource(createResource(userOneName, ZonedDateTime.now()));
	AccAccountDto account = new AccAccountDto();
	account.setEntityType(SystemEntityType.IDENTITY);
	account.setSystem(system.getId());
	account.setAccountType(AccountType.PERSONAL);
	account.setUid(userOneName);
	account = accountService.save(account);
	// Assign role with evaluator
	helper.createIdentityRole(identity, role);
	logout();
	loginService.login(new LoginDto(identity.getUsername(), identity.getPassword()));
	IcConnectorObject connectorObject = accountService.getConnectorObject(account, IdmBasePermission.READ);
	Assert.assertNotNull(connectorObject);
	Assert.assertEquals(userOneName, connectorObject.getUidValue());
	Assert.assertNotNull(connectorObject.getAttributeByName(eavAttributeName));
	Assert.assertEquals(userOneName, connectorObject.getAttributeByName(eavAttributeName).getValue());
}