@@ -0,0 +1,1626 @@
+package org.verapdf.model.impl.pb.pd;%0A%0Aimport org.apache.pdfbox.cos.COSBase;%0Aimport org.apache.pdfbox.cos.COSDictionary;%0Aimport org.apache.pdfbox.cos.COSName;%0Aimport org.apache.pdfbox.pdmodel.graphics.form.PDGroup;%0Aimport org.junit.AfterClass;%0Aimport org.junit.Assert;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport org.verapdf.model.baselayer.Object;%0Aimport org.verapdf.model.impl.BaseTest;%0Aimport org.verapdf.model.pdlayer.PDColorSpace;%0A%0Aimport java.io.IOException;%0Aimport java.net.URISyntaxException;%0Aimport java.util.List;%0A%0A/**%0A * @author Evgeniy Muravitskiy%0A */%0Apublic class PBoxPDGroupTest extends BaseTest %7B%0A%0A%09public static final String FILE_RELATIVE_PATH = %22pd/InteractiveObjects.pdf%22;%0A%0A%09@BeforeClass%0A%09public static void setUp() throws URISyntaxException, IOException %7B%0A%09%09expectedType = PBoxPDGroup.GROUP_TYPE;%0A%09%09expectedID = null;%0A%0A%09%09setUp(FILE_RELATIVE_PATH);%0A%09%09COSBase groupDictionary = document.getPage(0).getCOSObject().getDictionaryObject(COSName.GROUP);%0A%09%09actual = new PBoxPDGroup(new PDGroup((COSDictionary) groupDictionary));%0A%09%7D%0A%0A%09@Test%0A%09public void testSubtypeMethod() %7B%0A%09%09Assert.assertEquals(%22Transparency%22, ((org.verapdf.model.pdlayer.PDGroup) actual).getS());%0A%09%7D%0A%0A%09@Test%0A%09public void testColorSpaceLink() %7B%0A%09%09List%3C? extends Object%3E colorSpace = actual.getLinkedObjects(PBoxPDGroup.COLOR_SPACE);%0A%09%09Assert.assertEquals(1, colorSpace.size());%0A%09%09for (Object object : colorSpace) %7B%0A%09%09%09Assert.assertTrue(object instanceof PDColorSpace);%0A%09%09%7D%0A%09%7D%0A%0A%09@AfterClass%0A%09 public static void tearDown() throws IOException %7B%0A%09%09expectedType = null;%0A%09%09expectedID = null;%0A%09%09actual = null;%0A%0A%09%09document.close();%0A%09%7D%0A%7D%0A

Add test for PDGroup