@Test
public void megeDetaults() throws IOException {

    try (PDDocument anotherDoc = PDFParser.parse(SeekableSources.inMemorySeekableSourceFrom(
            getClass().getClassLoader().getResourceAsStream("pdf/forms/simple_form_with_full_dic.pdf")))) {
        PDAcroForm destination = new PDAcroForm(new PDDocument());
        AcroFormUtils.mergeDefaults(anotherDoc.getDocumentCatalog().getAcroForm(), destination);
        assertEquals(2, destination.getQuadding());
        assertEquals("/ArialMT 0 Tf 0 g ", destination.getDefaultAppearance());
        assertTrue(destination.isNeedAppearances());
        assertTrue(destination.getDefaultResources().getCOSObject().size() > 0);
    }
}