### Question:
AddressStore { public boolean add(int userId, Address address) { boolean result = false; if (address != null) { try (Connection connect = CON.getConnect(); PreparedStatement st = connect.prepareStatement(QUERIES.getProperty("addAddress"))) { st.setInt(1, userId); st.setString(2, address.getAddress()); st.execute(); result = true; } catch (SQLException e) { LOG.error(e.getMessage(), e); } } return result; }  boolean add(int userId, Address address); List<Address> findAll(); Address findById(int id); boolean delete(int id); boolean update(int id, Address address); int findId(Address address);  }### Answer:
@Test public void add() { assertTrue(this.testStore.add(-1, new Address("test"))); assertThat(this.testStore.findById(-1).getAddress(), is("test")); assertFalse(this.testStore.add(1, null)); }