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