VoiceXmlInterpreter { public void setState(final InterpreterState newState) { if (state == newState) { return; } state = newState; LOGGER.info("entered state " + state); } VoiceXmlInterpreter(final VoiceXmlInterpreterContext ctx); FormInterpretationAlgorithm getFormInterpretationAlgorithm(); InterpreterState getState(); void setState(final InterpreterState newState); Dialog getNextDialog(); Dialog getDialog(final String id); void process(final Dialog dialog,
            final Map<String, Object> parameters); void enterFinalProcessingState(); boolean isInFinalProcessingState(); Locale getLanguage();  }
@Test public void testSetState() { interpreter.setState(InterpreterState.TRANSITIONING); Assert.assertEquals(InterpreterState.TRANSITIONING, interpreter.getState()); }