Example code on how to use Smack and some simple test cases