@Test
    public void testManyObjects() {
        com.github.dozermapper.core.vo.B a = newInstance(com.github.dozermapper.core.vo.B.class);
        com.github.dozermapper.core.vo.B b = new com.github.dozermapper.core.vo.B();
        a.setCs(new com.github.dozermapper.core.vo.C[20000]);
        // Fill the list with C objects numbered from 0 to SIZE-1
        for (int i = 0; i < a.getCs().length; i++) {
            com.github.dozermapper.core.vo.C c = newInstance(com.github.dozermapper.core.vo.C.class);
            c.setValue(Integer.toString(i));
            a.getCs()[i] = c;
        }

        Mapper mapper = DozerBeanMapperBuilder.create()
                .withMappingFiles("mappings/testDozerBeanMapping.xml")
                .build();
        mapper.map(a, b);

        // Check if C object nr i holds value i after the mapping
        for (int i = 0; i < b.getCs().length; i++) {
            assertEquals("Wrong value ", b.getCs()[i].getValue(), Integer.toString(i));
        }
    }
This test checks the fix of bug #1715496 - Lost and Duplicated Objects
core/src/test/java/com/github/dozermapper/core/functional_tests/BiDirectionalMappingTest.java