UnmodifiableCOSDictionary(COSDictionary dict)
    {
        super();
        items = Collections.unmodifiableMap(dict.items);
    }
@Test
    void testUnmodifiableCOSDictionary()
    {
        COSDictionary unmodifiableCOSDictionary = new COSDictionary().asUnmodifiableDictionary();
        try
        {
            unmodifiableCOSDictionary.clear();
            fail("An UnsupportedOperationException should have been thrown");
        }
        catch(UnsupportedOperationException exception)
        {
            // nothing to do
        }

        try
        {
            unmodifiableCOSDictionary.removeItem(COSName.A);
            fail("An UnsupportedOperationException should have been thrown");
        }
        catch(UnsupportedOperationException exception)
        {
            // nothing to do
        }

        COSDictionary cosDictionary = new COSDictionary();
        try
        {
            unmodifiableCOSDictionary.addAll(cosDictionary);
            fail("An UnsupportedOperationException should have been thrown");
        }
        catch(UnsupportedOperationException exception)
        {
            // nothing to do
        }

        try
        {
            unmodifiableCOSDictionary.setFlag(COSName.A, 0, true);
            fail("An UnsupportedOperationException should have been thrown");
        }
        catch(UnsupportedOperationException exception)
        {
            // nothing to do
        }

        try
        {
            unmodifiableCOSDictionary.setNeedToBeUpdated(true);
            fail("An UnsupportedOperationException should have been thrown");
        }
        catch(UnsupportedOperationException exception)
        {
            // nothing to do
        }
    }