Testcase for https://github.com/esl/MongooseIM/pull/243
Merge pull request #65 from odobenus/master

Testcase for https://github.com/esl/MongooseIM/pull/243