JVoiceXmlSynthesizerModeDescFactory implements SynthesizerModeDescFactory { public void setModeName(final String name) { modeName = name; }  SynthesizerModeDesc createDescriptor(); void setEngineName(final String name); void setLocale(final Locale loc); void setModeName(final String name);  }
@Test public void testSetModeName() { final JVoiceXmlSynthesizerModeDescFactory desc1 = new JVoiceXmlSynthesizerModeDescFactory(); final String modeName = "Horst"; desc1.setModeName(modeName); final SynthesizerModeDesc refDescriptor1 = new SynthesizerModeDesc(null, modeName, null, 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()); }