/**
   * Tests the <CODE>isSecure</CODE> method.
   *
   * @throws Exception If an unexpected problem occurs.
   */
  @Test()
  public void testIsSecure() throws Exception {
    CRAMMD5SASLMechanismHandler handler =
        (CRAMMD5SASLMechanismHandler)
            DirectoryServer.getSASLMechanismHandler(SASL_MECHANISM_CRAM_MD5);

    assertTrue(handler.isSecure(SASL_MECHANISM_CRAM_MD5));
  }
  /**
   * Tests the process of initializing the handler with invalid configurations.
   *
   * @param entry The configuration entry to use for the initialization.
   * @throws Exception If an unexpected problem occurs.
   */
  @Test(
      dataProvider = "invalidConfigs",
      expectedExceptions = {ConfigException.class, InitializationException.class})
  public void testInitializeWithInvalidConfigs(Entry e) throws Exception {
    CramMD5SASLMechanismHandlerCfg configuration =
        AdminTestCaseUtils.getConfiguration(CramMD5SASLMechanismHandlerCfgDefn.getInstance(), e);

    CRAMMD5SASLMechanismHandler handler = new CRAMMD5SASLMechanismHandler();
    handler.initializeSASLMechanismHandler(configuration);
  }