private static void assertPSSAlgorithmParametersEquals(
            PSSParameterSpec expectedSpec, AlgorithmParameters actual)
                    throws InvalidParameterSpecException {
        assertNotNull(actual);
        assertEqualsIgnoreCase("PSS", actual.getAlgorithm());
        PSSParameterSpec actualSpec = actual.getParameterSpec(PSSParameterSpec.class);
        assertPSSParameterSpecEquals(expectedSpec, actualSpec);
    }
A possible signature using SHA256withDSA of Vector2Data. Note that DSS is
randomized, so this won't be the exact signature you'll get out of
another signing operation unless you use a fixed RNG.
common/src/test/java/org/conscrypt/java/security/SignatureTest.java