MMICallManager implements CallManager { public Session createSession(final CallMetadata data) throws ErrorEvent, UnsupportedResourceIdentifierException { final ConnectionInformationController controller = factory .createConnectionInformation(call, output, input); final ConnectionInformation info = controller .getConnectionInformation(); if (info instanceof ConnectionInformationCallMetadataModifiable) { final ConnectionInformationCallMetadataModifiable modifiable = (ConnectionInformationCallMetadataModifiable) info; modifiable.setProfile(MmiProfile.NAME); modifiable.setCalledDevice(data.getCalledDevice()); modifiable.setCallingDevice(data.getCallingDevice()); modifiable.setProtocolName(data.getProtocolName()); modifiable.setProtocolVersion(data.getProtocolVersion()); } final Session session = jvxml.createSession(info); sessions.put(session, controller); if (LOGGER.isDebugEnabled()) { LOGGER.debug("session '" + session.getSessionId() + "' created"); } return session; } MMICallManager(); void setCall(final String value); void setInput(final String value); void setOutput(final String value); void setServletBaseUri(final String uri); void setProtocolAdapter(final ETLProtocolAdapter protocolAdapter); void setExtensionNotificationDataConverter(
            final ExtensionNotificationDataConverter conv); void setExtensionNotificationDataExtractor(
            final ExtensionNotificationDataExtractor ext); ExtensionNotificationDataConverter getExtensionNotificationDataConverter(); void setConnectionInformationFactory(
            final ConnectionInformationFactory connectionInformationFactory); @Override void setJVoiceXml(final JVoiceXmlCore jvoicexml); @Override void start(); @Override boolean isStarted(); Session createSession(final CallMetadata data); void cleanupSession(final Session session); @Override void stop();  }
@Test public void testCreateSession() throws Exception, JVoiceXMLEvent { final Session session = cm.createSession(null); Assert.assertNotNull(session); cm.cleanupSession(session); }