There are three options you can look at: Robotium, Scirocco and Robolectric.
I've found them to be useful for basic operations as long as you are explicit in what should happen and what to click on, etc. I cannot say whether they can send SMSes using the built-in SMS app, it is likely that you will need to build this automation in somehow, or even send SMSes via the emulator.