.buildPersistenceManager();
try {
//When
logAsserter.prepareLogLevel();
final EntityWithTwoConsistency entity = new EntityWithTwoConsistency();
entity.setId(RandomUtils.nextLong(0,Long.MAX_VALUE));
pm.insert(entity);
//Then
assertThat(pm.find(EntityWithTwoConsistency.class, entity.getId())).isNotNull();
logAsserter.assertConsistencyLevels(ONE, QUORUM);
} finally {
pm.getNativeSession().close();
}