### Question:
DbStore implements Store, UserAddressStore { @Override public User findById(int id) { User user = null; try (Connection con = SOURCE.getConnection(); PreparedStatement st = con.prepareStatement(PROPS.getProperty("findById"))) { st.setInt(1, id); try (ResultSet rstSet = st.executeQuery()) { if (rstSet.next()) { user = this.createUserFromRstSet(rstSet); } } } catch (SQLException e) { LOG.error(e.getMessage(), e); } return user; } 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 findById() { this.testStore.add(first); 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")); } catch (SQLException e) { e.printStackTrace(); } assertThat(this.testStore.findById(this.first.getId()), is(this.first)); }