### Question:
PutResult { @NonNull public static PutResult newInsertResult(@NonNull Uri insertedUri, @NonNull Uri affectedUri) { checkNotNull(insertedUri, "insertedUri must not be null"); return new PutResult(insertedUri, null, affectedUri); } private  PutResult(@Nullable Uri insertedUri, @Nullable Integer numberOfRowsUpdated, @NonNull Uri affectedUri); @NonNull static PutResult newInsertResult(@NonNull Uri insertedUri, @NonNull Uri affectedUri); @NonNull static PutResult newUpdateResult(int numberOfRowsUpdated, @NonNull Uri affectedUri); boolean wasInserted(); boolean wasNotInserted(); boolean wasUpdated(); boolean wasNotUpdated(); @Nullable Uri insertedUri(); @Nullable Integer numberOfRowsUpdated(); @NonNull Uri affectedUri(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void shouldNotCreateInsertResultWithNullInsertedUri() { try { PutResult.newInsertResult(null, mock(Uri.class)); failBecauseExceptionWasNotThrown(NullPointerException.class); } catch (NullPointerException expected) { assertThat(expected).hasMessage("insertedUri must not be null"); } }
@Test public void shouldNotCreateInsertResultWithNullAffectedUri() { try { PutResult.newInsertResult(mock(Uri.class), null); failBecauseExceptionWasNotThrown(NullPointerException.class); } catch (NullPointerException expected) { assertThat(expected).hasMessage("affectedUri must not be null"); } }