As per http://stackoverflow.com/a/13556184/3286489, we could use
I have found a solution, where we could just use Robolectric's
RuntimeEnvironment.application as the Context, and the others would be straight forward as normal Unit test process.
In case if more details is needed, do refer to this, that has complete code of having Android SQLite DB unit tested. https://email@example.com/android-sqlite-database-unit-testing-is-easy-a09994701162#.rhdv2qa9o