UberfireRoleManager implements RoleManager,
                                            ContextualManager { @Override public Role update(Role entity) throws SecurityManagementException { throw new UnsupportedOperationException("Update operation is not available when using the UberfireRoleManager provider."); }  @Override void initialize(final UserSystemManager userSystemManager); @Override SearchResponse<Role> search(SearchRequest request); @Override Role get(String identifier); @Override List<Role> getAll(); @Override Role create(Role entity); @Override Role update(Role entity); @Override void delete(String... identifiers); @Override RoleManagerSettings getSettings(); @Override void destroy();  }
@Test(expected = UnsupportedOperationException.class) public void testUpdate() { tested.update(mockRole("regRole1")); }