### Question:
PotentialMatchRepository implements Closeable, Repository<PotentialMatch> { @Override public boolean exists(String id) { String dbId = (id == null ? "" : id); @Cleanup Cursor cursor = session.rawQuery("SELECT * FROM potential_match WHERE id = ?", new String[]{dbId}); return cursor.moveToNext() && cursor.getCount() > 0; } @Inject  PotentialMatchRepository(@Named("USER_NAME") String userName, DatabaseSession session); @Override void close(); @Override List<PotentialMatch> toBeSynced(); @Override boolean exists(String id); @Override PotentialMatch get(String id); @Override int size(); @Override void createOrUpdate(PotentialMatch potentialMatch); @Override HashMap<String, String> getAllIdsAndRevs(); @Override void createOrUpdateWithoutHistory(PotentialMatch potentialMatch); void delete(PotentialMatch potentialMatch); @Override List<PotentialMatch> currentUsersUnsyncedRecords(); @Override List<String> getRecordIdsByOwner(); @Override List<PotentialMatch> allCreatedByCurrentUser(); @Override List<PotentialMatch> getRecordsBetween(int previousPageNumber, int pageNumber); @Override List<PotentialMatch> getRecordsForFirstPage(); List<PotentialMatch> getPotentialMatchesFor(Enquiry enquiry); List<PotentialMatch> getPotentialMatchesFor(Child child);  }### Answer:
@Test public void shouldReturnFalseWhenAChildWithTheGivenIdDoesNotExistsInTheDatabase() throws JSONException, SQLException { assertThat(repository.exists("1234"), is(false)); }