@Test(expected = NullPointerException.class)
public void shouldThrowAnExceptionWhenObjectIsNull() {

  // given
  Object object = null;
  // when
  Preconditions.checkNotNull(object, "object == null");
  // then an exception is thrown
}