public ASN1Sequence retrievePipFromSignedPip(ASN1Sequence signedPip) throws BsnkException {
        ASN1Sequence signedPipContent = (ASN1Sequence) signedPip.getObjectAt(1);
        ASN1Sequence pip = (ASN1Sequence) signedPipContent.getObjectAt(0);

        ASN1ObjectIdentifier objectIdentifier = (ASN1ObjectIdentifier) pip.getObjectAt(0);
        if (!objectIdentifier.getId().equals(PIP_OID)) {
            throw new BsnkException("SignedPipNoPipFault",
                    String.format("Signed pip doesnt contain a pip. Expected identifier: '%s'. Found identifier: '%s'",
                            PIP_OID, objectIdentifier.toString()),
                    null);
        }

        return pip;
    }
@Test
    public void retrievePipFromSignedPipTest() throws IOException, BsnkException {
        ASN1Sequence result = bsnkUtil.retrievePipFromSignedPip(signedPip);
        assertEquals(Base64.getEncoder().encodeToString(result.getEncoded()), pipbase64);
    }