@Test
    public void testInitFailsWhenAlreadyInitialized() throws Exception {
        AlgorithmParameters params = AlgorithmParameters.getInstance("PSS");
        params.init(DEFAULT_SPEC);
        try {
            params.init(DEFAULT_SPEC);
            fail();
        } catch (InvalidParameterSpecException expected) {}
        try {
            params.init(DEFAULT_SPEC_DER_ENCODED);
            fail();
        } catch (IOException expected) {}
        try {
            params.init(DEFAULT_SPEC_DER_ENCODED, "ASN.1");
            fail();
        } catch (IOException expected) {}
    }
Payload of SEQUENCE extends beyond the SEQUENCE.
common/src/test/java/org/conscrypt/java/security/AlgorithmParametersPSSTest.java