### Question:
RoleStore { public Role findById(int id) { Role result = null; try (Connection connect = CON.getConnect(); PreparedStatement st = connect.prepareStatement(QUERIES.getProperty("findRoleById"))) { st.setInt(1, id); try (ResultSet rstSet = st.executeQuery()) { if (rstSet.next()) { result = new Role(rstSet.getString("role")); result.setId(rstSet.getInt("id")); } } } catch (SQLException e) { LOG.error(e.getMessage(), e); } return result; }  int add(Role role); List<Role> findAll(); Role findById(int id); boolean delete(int id); boolean update(int id, Role role); int findRoleId(Role role); List<User> findUsersByRole(Role role);  }### Answer:
@Test public void findById() { this.testStore.add(new Role("test")); int roleId = findRoleId(new Role("test")); assertTrue(this.testStore.findById(roleId).equals(new Role("test"))); }