### Question:
DbStore implements Store, UserAddressStore { @Override public List<User> findAll() { List<User> resultList = new ArrayList<>(); try (Connection con = SOURCE.getConnection(); Statement st = con.createStatement(); ResultSet rst = st.executeQuery(PROPS.getProperty("findAll"))) { while (rst.next()) { resultList.add(this.createUserFromRstSet(rst)); } } catch (SQLException e) { LOG.error(e.getMessage(), e); } return resultList; } private  DbStore(); static DbStore getInstance(); @Override User findByLogin(String login); @Override void add(User user); @Override void update(User newUser); @Override void delete(int userId); @Override List<User> findAll(); @Override User findById(int id); List<String> findAllCountries(); List<String> findCitiesByCountry(String name);  }### Answer:
@Test public void findAll() { this.testStore.add(first); this.testStore.add(second); try (Statement st = this.connect.createStatement(); ResultSet rstSet = st.executeQuery("SELECT id FROM users WHERE name = 'test'")) { rstSet.next(); this.first.setId(rstSet.getInt("id")); rstSet.next(); this.second.setId(rstSet.getInt("id")); } catch (SQLException e) { e.printStackTrace(); } List<User> result = this.testStore.findAll(); List<User> expect = new ArrayList<>(asList(first, second)); assertThat(result.containsAll(expect), is(true)); }