ProtectionSystemSpecificHeaderBox pssh = new ProtectionSystemSpecificHeaderBox();
pssh.setSystemId(ProtectionSystemSpecificHeaderBox.OMA2_SYSTEM_ID);
byte[] content = new byte[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
pssh.setContent(content);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
pssh.getBox(Channels.newChannel(baos));
IsoFile isoFile = new IsoFile(Channels.newChannel(new ByteArrayInputStream(baos.toByteArray())));
Assert.assertEquals(1, isoFile.getBoxes().size());
Assert.assertTrue(isoFile.getBoxes().get(0) instanceof ProtectionSystemSpecificHeaderBox);
Assert.assertArrayEquals(((ProtectionSystemSpecificHeaderBox) isoFile.getBoxes().get(0)).getContent(), content);