JVoiceXmlSynthesizerModeDescFactory implements SynthesizerModeDescFactory { public void setLocale(final Locale loc) { locale = loc; }  SynthesizerModeDesc createDescriptor(); void setEngineName(final String name); void setLocale(final Locale loc); void setModeName(final String name);  }
@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()); }