### Question:
AuthScopeRdbmsDao extends AuthScopeDao { @Override public List<AuthScope> readAll() throws AuthServerException { Map<String, AuthScope> authScopes = new HashMap<>(); Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { connection = getConnection(); statement = connection.prepareStatement(RdbmsConstants.PS_SELECT_ALL_AUTH_SCOPES); resultSet = statement.executeQuery(); while (resultSet.next()) { String scopeName = resultSet.getString(1); AuthScope authScope = authScopes.get(scopeName); if (Objects.isNull(authScope)) { authScope = new AuthScope(scopeName, new HashSet<>()); authScopes.put(scopeName, authScope); } if (Objects.nonNull(resultSet.getString(2))) { authScope.addUserGroup(resultSet.getString(2)); } } } catch (SQLException e) { throw new AuthServerException("Error occurred while retrieving scopes", e); } finally { close(connection, statement, resultSet); } return new ArrayList<>(authScopes.values()); } AuthScopeRdbmsDao(DataSource dataSource); @Override AuthScope read(String scopeName); @Override List<AuthScope> readAll(); @Override void update(String scopeName, List<String> userGroups);  }### Answer:
@Test public void testReadAll() throws AuthServerException { List<AuthScope> authScopes = authScopeDao.readAll(); Assert.assertEquals(authScopes.size(), 19); }