### Question:
DeleteResults { public boolean wasDeleted(@NonNull T object) { final DeleteResult result = results.get(object); return result != null && result.numberOfRowsDeleted() > 0; } private  DeleteResults(@NonNull Map<T, DeleteResult> results); @NonNull static DeleteResults<T> newInstance(@NonNull Map<T, DeleteResult> results); @NonNull Map<T, DeleteResult> results(); boolean wasDeleted(@NonNull T object); boolean wasNotDeleted(@NonNull T object); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void wasDeleted() { final Map<String, DeleteResult> results = new HashMap<String, DeleteResult>(); results.put("testString", DeleteResult.newInstance(1, "test_table")); final DeleteResults<String> deleteResults = DeleteResults.newInstance(results); assertThat(deleteResults.wasDeleted("testString")).isTrue(); assertThat(deleteResults.wasDeleted("should not be deleted")).isFalse(); assertThat(deleteResults.wasNotDeleted("testString")).isFalse(); assertThat(deleteResults.wasNotDeleted("should not be deleted")).isTrue(); }