@Test
public void testDynaRoles() throws Exception {
IRoleService roleService = getRoleService();
IDynamicRoleMetaInfo dynaMeta = roleService.getDynamicRoleImpl("com.jresearchsoft.flexess.examples.orders"); //$NON-NLS-1$
dynaMeta.setName("superadm"); //$NON-NLS-1$
dynaMeta = roleService.saveDynamicRole(dynaMeta);
id = dynaMeta.getId();
IPermissionService permService = getPermissionService();
List<IPermissionMetaInfo> perms = permService.getPermissions("com.jresearchsoft.flexess.examples.orders"); //$NON-NLS-1$
for (IPermissionMetaInfo info : perms) {