assertEquals(entity, fromDto);
assertNotNull(fromDto.getPreviousAddresses());
assertEquals(2, fromDto.getPreviousAddresses().size());
assertEquals(entity.getPreviousAddresses().get(0), fromDto.getPreviousAddresses().get(0));
final PersonWithHistoryDTO fromEntity = (PersonWithHistoryDTO) mapper.fromEntity(entity);
assertEquals(dto, fromEntity);
assertNotNull(fromEntity.getPreviousAddresses());
assertEquals(2, fromEntity.getPreviousAddresses().size());
assertEquals(((PersonWithHistoryDTO) dto).getPreviousAddresses().get(0), fromEntity.getPreviousAddresses().get(0));