@Test
  public void testGetSpokenDialect_NoKey() throws Exception {
    SpokenDialect.flushNameCache();
    SpokenDialect.setKey(null);
    Language locale = Language.ENGLISH;

    exception.expect(RuntimeException.class);
    exception.expectMessage(
        "INVALID_API_KEY - Please set the API Key with your Bing Developer's Key");
    SpokenDialect.FRENCH_CANADA.getName(locale);
  }
  /** Test of getLanguageName method, of class Language. */
  @Test
  public void testGetNameLocalized() throws Exception {
    Language locale = Language.ENGLISH;
    String expResult = "French (Canada)";
    String result = SpokenDialect.FRENCH_CANADA.getName(locale);
    assertEquals(expResult, result);

    locale = Language.FRENCH;
    expResult = "Anglais (Inde)";
    result = SpokenDialect.ENGLISH_INDIA.getName(locale);
    assertEquals(expResult, result);
  }