@Test
public void jcaContentSignerBuilder() throws Exception {

  final PrivateKey key = generator.generateKeyPair().getPrivate();
  final ContentSigner signer = jcaContentSignerBuilder.build(key);
  assertThat(signer.getAlgorithmIdentifier().getAlgorithm(), equalTo(sha256WithRSAEncryption));
}