Sending SMS in android is so simple, you just have to get the default SMSManager and call the sendTextMessage
Android Code :
Testing the above code is even simpler,
1) Get the shadowSMSManager
2) From it, we can get the lastSentTextMessageParams, which has the details abt the last sent SMS.
3) Assert with the expected values
Robolectric Test :