UberfireRoleManager implements RoleManager,
                                            ContextualManager { @Override public List<Role> getAll() throws SecurityManagementException { return new ArrayList<>(RoleRegistry.get().getRegisteredRoles()); }  @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 public void testGetAllRoles() { List<Role> results = tested.getAll(); assertEquals(results.size(), 3); }