@Test
public void testValidateRsaPublicExponent() throws Exception {

  Validators.validateRsaPublicExponent(BigInteger.valueOf(65537));
  try {
    Validators.validateRsaPublicExponent(BigInteger.valueOf(65535));
    fail("Expected GeneralSecurityException");
  } catch (GeneralSecurityException e) {
    // Expected
  }
  try {
    Validators.validateRsaPublicExponent(BigInteger.valueOf(65538));
    fail("Expected GeneralSecurityException");
  } catch (GeneralSecurityException e) {
    // Expected
  }
}