public List<String> getOptions()
    {
        COSBase values = getCOSObject().getDictionaryObject(COSName.OPT);
        return FieldUtils.getPairableItems(values, 0);
    }
@Test
    void getOptionsFromCOSArray()
    {
        PDChoice choiceField = new PDComboBox(acroForm);
        COSArray choiceFieldOptions = new COSArray();

        // add entry to options
        COSArray entry = new COSArray();
        entry.add(new COSString(" "));
        choiceFieldOptions.add(entry);

        // add entry to options
        entry = new COSArray();
        entry.add(new COSString("A"));
        choiceFieldOptions.add(entry);

        // add entry to options
        entry = new COSArray();
        entry.add(new COSString("B"));
        choiceFieldOptions.add(entry);
                
        // add the options using the low level COS model as the PD model will
        // abstract the COSArray
        choiceField.getCOSObject().setItem(COSName.OPT, choiceFieldOptions);

        assertEquals(options, choiceField.getOptions());
    }