@Test
public void shouldNotCreateWithMissingId() {

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