@Test
void documentHasId() {

    assertFalse(entityCodec.documentHasId(new TestEntity()));
    TestEntity entity = new TestEntity();
    entity.id = new ObjectId();
    assertTrue(entityCodec.documentHasId(entity));
}