@Test
public void shouldProcessActivityResult() throws Exception {

  Intent mockIntent = mock(Intent.class);
  Bundle mockBundle = mock(Bundle.class);
  ServerModel mockServerModel = mock(ServerModel.class);
  when(mockBundle.getParcelable("server")).thenReturn(mockServerModel);
  when(mockIntent.getExtras()).thenReturn(mockBundle);
  serverSearchActivity.onActivityResult(12345, -1, mockIntent);
  verify(mockBundle, times(1)).getParcelable("server");
  verify(mockIntent, times(1)).getExtras();
  verify(mockServerSearchPresenter).onNavigationResult(12345, true, mockServerModel);
}