### Question:
RoleStore { public boolean delete(int id) { boolean done = false; try (Connection connect = CON.getConnect(); PreparedStatement st = connect.prepareStatement(QUERIES.getProperty("deleteRole"))) { st.setInt(1, id); done = st.executeUpdate() > 0; } catch (SQLException e) { LOG.error(e.getMessage(), e); } return done; }  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 delete() { this.testStore.add(new Role("test")); assertTrue(this.testStore.delete(this.findRoleId(new Role("test")))); assertFalse(this.testStore.delete(0)); assertFalse(this.testStore.findAll().contains(new Role("test"))); }