Migrate native tests to Robolectric tests