@Test
public void testToRsaSsaPkcs1Algo() throws Exception {

  assertEquals("SHA256withRSA", SubtleUtil.toRsaSsaPkcs1Algo(HashType.SHA256));
  assertEquals("SHA512withRSA", SubtleUtil.toRsaSsaPkcs1Algo(HashType.SHA512));
  try {
    SubtleUtil.toRsaSsaPkcs1Algo(HashType.SHA1);
    fail("Invalid hash, should have thrown exception");
  } catch (GeneralSecurityException expected) {
  }
}