/**
   * 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));
  }