### Question:
RoleStore { public int add(Role role) { int result = 0; if (role != null && !findAll().contains(role)) { try (Connection connect = CON.getConnect(); PreparedStatement st = connect.prepareStatement(QUERIES.getProperty("addRole"))) { st.setString(1, role.getRole()); try (ResultSet rstSet = st.executeQuery()) { if (rstSet.next()) { result = 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 add() { testStore.add(new Role("test")); assertTrue(testStore.findAll().contains(new Role("test"))); }