@Test
public void copyDictionary() {

    PDOutlineItem from = new PDOutlineItem();
    from.setBold(true);
    from.setItalic(true);
    from.setTitle("Chuck");
    PDOutlineItem to = new PDOutlineItem();
    to.setBold(false);
    to.setItalic(false);
    OutlineUtils.copyOutlineDictionary(from, to);
    assertTrue(to.isBold());
    assertTrue(to.isItalic());
    assertEquals("Chuck", to.getTitle());
    assertNull(to.getCOSObject().getDictionaryObject(COSName.C));
}