@Test
public void shouldCancelActivityWhenHomeButtonPressed() throws Exception {

  MenuItem mockMenuItem = mock(MenuItem.class);
  when(mockMenuItem.getItemId()).thenReturn(android.R.id.home);
  serverFoundActivity.onOptionsItemSelected(mockMenuItem);
  verify(mockServerFoundPresenter, times(1)).onClickCancel();
}