} try { String test = this.dictionaryWordGenerator.getWord(UNKNOWN_LENGHT); fail("Should throw a CaptchaException"); } catch (CaptchaException e) { assertNotNull(e.getMessage()); }
    public void testGetWordIntegerLocale() {        Integer length = new Integer(10);        String test = this.dictionaryWordGenerator.getWord(length,Locale.US);        assertNotNull(test);        assertTrue(test.length() > 0);        assertEquals(length.intValue(),test.length());    }