public SmppCommand createSmppCommand(SMPPSession session, Exchange exchange) {
        SmppCommandType commandType = SmppCommandType.fromExchange(exchange);

        return commandType.createCommand(session, configuration);
    }
@Test
    public void createSmppDataSmCommand() {
        SMPPSession session = new SMPPSession();
        Exchange exchange = new DefaultExchange(new DefaultCamelContext());
        exchange.getIn().setHeader(SmppConstants.COMMAND, "DataSm");

        SmppCommand command = binding.createSmppCommand(session, exchange);

        assertTrue(command instanceof SmppDataSmCommand);
    }