Add robolectric test.
Merge pull request #320 from onepf/robolectic_test

Add robolectric test.