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