@Test(expected = BeanFactoryNotFoundException.class)
public void testNullObjectWithoutReadOnlyMappingAndLayeredNestingDoesNotRequireBeanFactory() throws GeDAException {
final TestDto4DelegatingWritableClass dto = new TestDto4DelegatingWritableClass();
dto.setNestedString("ReadOnly");
final TestEntity4Class entity = new TestEntity4Class(); // entity with nested string null.
final Assembler assembler =
DTOAssembler.newCustomAssembler(TestDto4DelegatingWritableClass.class, TestEntity4Class.class, synthesizer);
assertNotNull(dto.getNestedString());
assertNull(entity.getWrapper());
assembler.assembleEntity(dto, entity, null, null);
}