/**
   * Tests getting a proxy certificate for failure.
   *
   * @throws Exception if the test fails.
   */
  @Test
  public void testLoadCertificateForFailure() throws Exception {
    try {
      authService.loadCertificate(null);

      fail();
    } catch (IllegalArgumentException e) {
      assertTrue(true);
    }
  }
  /**
   * Tests getting a proxy certificate for success.
   *
   * @throws Exception if the test fails.
   */
  @Test
  public void testLoadCertificateForSuccess() throws Exception {

    X509Certificate certificate =
        authService.loadCertificate(
            System.getProperty(AuthenticationTestConstants.USER_DIR)
                + AuthenticationTestConstants.TESTRESOURCES_DIR
                + AuthenticationTestConstants.USERCERT_RCE_ENGINEER_PEM);

    assertNotNull(certificate);
  }