@Test
public void should_insert_not_null_field_overriding_global_config() throws Exception {
//Given
Long id = RandomUtils.nextLong(0,Long.MAX_VALUE);
EntityWithNotNullInsertStrategy entity = new EntityWithNotNullInsertStrategy();
entity.setId(id);
entity.setName("Helen");
entity.setLabel("label");
//When
manager1.insert(entity);
entity.setLabel(null);
manager1.insert(entity);
//Then
final EntityWithNotNullInsertStrategy found = manager1.find(EntityWithNotNullInsertStrategy.class, id);
assertThat(found.getName()).isEqualTo("Helen");
assertThat(found.getLabel()).isEqualTo("label");
}