### Question:
UserStore { public User findById(int id) { User result = null; try (Connection con = CON.getConnect(); PreparedStatement st = con.prepareStatement(QUERIES.getProperty("findUserById"))) { st.setInt(1, id); try (ResultSet rstSet = st.executeQuery()) { if (rstSet.next()) { result = createUserByRstSet(rstSet); } } } catch (SQLException e) { LOG.error(e.getMessage(), e); } return result; }  boolean add(User user); List<User> findAll(); User findById(int id); User findByLogin(String login); User findByAddress(Address address); List<User> findByRole(Role role); List<User> findByType(MusicType type); boolean delete(int id); boolean update(int id, User user);  }### Answer:
@Test public void findById() { this.testStore.add(this.first); int userId = findIdByName(this.first); assertThat(this.testStore.findById(userId), is(this.first)); }