NimbleLinearLayout extends LinearLayout implements NimbleView { @Override protected void onRestoreInstanceState(Parcelable state) { Bundle bundle = (Bundle) state; super.onRestoreInstanceState(bundle.getParcelable(PARENT_STATE_KEY)); presenter().onCreate(bundle); } NimbleLinearLayout(Context context);  NimbleLinearLayout(Context context, AttributeSet attrs);  NimbleLinearLayout(Context context, AttributeSet attrs, int defStyleAttr); Activity getActivity();  }
@Test public void testOnRestoreInstanceState() throws Exception { Bundle bundle = mock(Bundle.class); layout.onRestoreInstanceState(bundle); verify(bundle).getParcelable(TestLayout.PARENT_STATE_KEY); verify(presenter).onCreate(bundle); }