// when
session.persist( monty );
tx.commit();
assertThat( monty.getId() ).isNotNull();
session.clear();
tx = session.beginTransaction();
// then
assertCountQueryResult( session, "db.Comedian.count({ \"_id\" : { \"$oid\" : \"" + monty.getId() + "\" }, \"name\" : \"Monty\" })", 1L);