JVoiceXmlRecognizerModeDescFactory implements RecognizerModeDescFactory { public void setEngineName(final String name) { engineName = name; }  RecognizerModeDesc createDescriptor(); void setEngineName(final String name); void setLocale(final Locale loc); void setModeName(final String name);  }
@Test public void testSetEngineName() { final JVoiceXmlRecognizerModeDescFactory desc1 = new JVoiceXmlRecognizerModeDescFactory(); final String engineName = "Horst"; desc1.setEngineName(engineName); final RecognizerModeDesc refDescriptor1 = new RecognizerModeDesc(engineName, null, null, null, null, null); Assert.assertEquals(refDescriptor1, desc1.createDescriptor()); final JVoiceXmlRecognizerModeDescFactory desc2 = new JVoiceXmlRecognizerModeDescFactory(); final RecognizerModeDesc refDescriptor2 = new RecognizerModeDesc(null, null, null, null, null, null); Assert.assertEquals(refDescriptor2, desc2.createDescriptor()); }