NimbleRelativeLayout extends RelativeLayout implements NimbleView { @Override protected Parcelable onSaveInstanceState() { Bundle outState = new Bundle(); outState.putParcelable(PARENT_STATE_KEY, super.onSaveInstanceState()); presenter().onSave(outState); return outState; } NimbleRelativeLayout(Context context);  NimbleRelativeLayout(Context context, AttributeSet attrs);  NimbleRelativeLayout(Context context, AttributeSet attrs, int defStyleAttr); Activity getActivity();  }
@Test public void testOnSaveInstanceState() throws Exception { Bundle bundle = (Bundle) layout.onSaveInstanceState(); verify(presenter).onSave(bundle); }