NimbleFragment extends Fragment implements NimbleView { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(layoutId(), container, false); presenter().takeView(getMvpView()); presenter().onCreate(savedInstanceState); return view; }  @Override View onCreateView(LayoutInflater inflater, ViewGroup container,
      Bundle savedInstanceState); @Override @CallSuper void onResume(); @Override @CallSuper void onPause(); @Override void onDestroy(); @Override @CallSuper void onSaveInstanceState(final Bundle outState);  }
@Test public void testOnCreateView() throws Exception { LayoutInflater layoutInflater = mock(LayoutInflater.class); ViewGroup viewGroup = mock(ViewGroup.class); fragment.onCreateView(layoutInflater, viewGroup, bundle); verify(layoutInflater).inflate(fragment.layoutId(), viewGroup, false); verify(presenter).takeView(fragment); verify(presenter).onCreate(bundle); }