@Test
public void testEncodedSha256SignatureVerification() throws Exception
{

    Signer signer = factory.getInstance(true, new PssSignerParameters(privateKey,"SHA-256", -1));
    Signer verifier = factory.getInstance(false, publicKey, signer.getEncoded());
    runTestSignatureVerification(signer, verifier);
}