@Override
    public void accept(ICOSVisitor visitor) throws IOException
    {
        visitor.visitFromBoolean(this);
    }
@Override
    @Test
    void testAccept()
    {
        ByteArrayOutputStream outStream = new ByteArrayOutputStream();
        COSWriter visitor = new COSWriter(outStream);
        int index = 0;
        try
        {
            cosBooleanTrue.accept(visitor);
            testByteArrays(String.valueOf(cosBooleanTrue).getBytes(StandardCharsets.ISO_8859_1), outStream.toByteArray());
            outStream.reset();
            cosBooleanFalse.accept(visitor);
            testByteArrays(String.valueOf(cosBooleanFalse).getBytes(StandardCharsets.ISO_8859_1), outStream.toByteArray());
            outStream.reset();
        }
        catch (Exception e)
        {
            fail("Failed to write " + index + " exception: " + e.getMessage());
        }
    }