@Test
public void testSetLocale() {

    final JVoiceXmlSynthesizerModeDescFactory desc1 =
        new JVoiceXmlSynthesizerModeDescFactory();
    final Locale locale = Locale.US;
    desc1.setLocale(locale);
    final SynthesizerModeDesc refDescriptor1 =
        new SynthesizerModeDesc(null, null, locale, null, null);
    Assert.assertEquals(refDescriptor1, desc1.createDescriptor());
    final SynthesizerModeDescFactory desc2 =
        new JVoiceXmlSynthesizerModeDescFactory();
    final SynthesizerModeDesc refDescriptor2 =
        new SynthesizerModeDesc(null, null, null, null, null);
    Assert.assertEquals(refDescriptor2, desc2.createDescriptor());
}