@Test
public void shouldNotCreateOrUpdateWithMissingId() {

    // given
    final TestObject testObject = new TestObject(null, "someValue");
    // when / then
    assertThrows(NullPointerException.class, () -> {
        final TestObject resultingObject = testee.createOrUpdate(testObject);
    });
}