KinectSpokenInput implements SpokenInput { @Override public void activate() throws NoresourceError { } KinectSpokenInput(); void setType(final String value); @Override String getType(); @Override void open(); @Override void activate(); @Override void passivate(); @Override void close(); @Override boolean isBusy(); @Override void connect(ConnectionInformation client); @Override void disconnect(ConnectionInformation client); @Override void startRecognition(final DataModel model,
            SpeechRecognizerProperties speech,
            DtmfRecognizerProperties dtmf); @Override void stopRecognition(); @Override void addListener(final SpokenInputListener listener); @Override void removeListener(final SpokenInputListener listener); @Override void activateGrammars(
            final Collection<GrammarImplementation<?>> grammars); @Override void deactivateGrammars(
            final Collection<GrammarImplementation<?>> grammars); @Override Collection<GrammarType> getSupportedGrammarTypes(); @Override GrammarImplementation<?> loadGrammar(URI uri, GrammarType type); @Override Collection<BargeInType> getSupportedBargeInTypes();  }
@Test public void testActivate() throws JVoiceXMLEvent { final KinectSpokenInput input = new KinectSpokenInput(); input.open(); input.activate(); Assert.assertTrue(input.isActivated()); input.passivate(); Assert.assertFalse(input.isActivated()); }