### Question:
UserStore { public boolean delete(int id) { boolean done = false; if (ADDRESS_STORE.delete(id)) { try (Connection con = CON.getConnect()) { this.deleteUserType(con, id); try (PreparedStatement st2 = con.prepareStatement(QUERIES.getProperty("deleteUser"))) { st2.setInt(1, id); done = st2.executeUpdate() > 0; } } catch (SQLException e) { LOG.error(e.getMessage(), e); } } return done; }  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 delete() { this.testStore.add(this.first); int userId = this.findIdByName(this.first); this.testStore.delete(userId); assertNull(this.testStore.findById(userId)); }