IPermissionMetaInfo permMeta = perm.iterator().next();
assertEquals(permMeta.getAttributes().size(), 1);
assertEquals(permMeta.getId(), "_JLNSMMr9Eduhuu4mIe0M6A"); //$NON-NLS-1$
assertEquals(permMeta.getOperationDescriptions().size(), 0);
IAttributeMetaInfo am2 = permMeta.getAttribute("uid"); //$NON-NLS-1$
assertEquals(am2.getName(), "uid"); //$NON-NLS-1$
assertEquals(am2.getType(), EcorePackage.eINSTANCE.getEString().getClassifierID());
assertEquals(am2.getTypeDescription(), "String"); //$NON-NLS-1$
role = roleService.getRole("com.jresearchsoft.flexess.examples.orders", "_9ureoMm2Edu14qXh2kkVDA"); //$NON-NLS-1$ //$NON-NLS-2$
assertNotNull(role);
role2 = roleService.findRole("com.jresearchsoft.flexess.examples.orders", "Regional order manager"); //$NON-NLS-1$ //$NON-NLS-2$
assertNotNull(role2);
perm = role.getPermissions();
assertNotNull(perm);
assertEquals(perm.size(), 1);
permMeta = perm.iterator().next();
assertEquals(permMeta.getAttributes().size(), 1);
assertEquals(permMeta.getId(), "_KBjlgMm3Edu14qXh2kkVDA"); //$NON-NLS-1$
assertEquals(permMeta.getOperationDescriptions().size(), 3);
IAttributeMetaInfo am1 = permMeta.getAttribute("region"); //$NON-NLS-1$
assertEquals(am1.getName(), "region"); //$NON-NLS-1$
assertEquals(am1.getType(), EcorePackage.eINSTANCE.getEString().getClassifierID());
assertEquals(am1.getTypeDescription(), "String"); //$NON-NLS-1$
}