@Test(expected = IllegalStateException.class)
public void testFailIfContextNotContainsFragmentActivity() {

    Activity activity = Robolectric.buildActivity(Activity.class).create().get();
    cache.getViewModel(1, activity);
}