ServerSearchActivity extends BaseActivity implements ServerSearchView { @Override public void navigateToServerDetail(ServerModel serverModel) { navigator.navigateToServerFoundActivity(this, serverModel); }  @NonNull static Intent getCallingIntent(Context context); @Deprecated static Intent getCallingIntent(Context context, ServerModel serverModel); @Override void onBackPressed(); @Override void navigateToServerDetail(ServerModel serverModel); @Override void navigateToMainScreen(ServerModel serverModel); @Override void showMessage(String message); @Override void showError(Exception exception); @Override void closeMenu(); @Override void showLoading(); @Override void hideLoading(); @Override void startQrScanner(); @Override void stopQrScanner(); @Override void showEnterNetworkAddressDialog(); @Override void showWifiState(int wifiStrenghtLevel); @OnClick(R.id.button_fab_wifi) void onFabWifiButtonClick(View view); @OnClick(R.id.button_fab_qr) void onFabQrButtonClick(View view); @OnClick(R.id.button_fab_ip) void onFabIpButtonClick(View view); @OnClick(R.id.button_close_camera) void onCloseCameraButtonClick(View view);  }
@Test public void shouldNavigateToServerDetail() throws Exception { ServerModel mockServerModel = mock(ServerModel.class); serverSearchActivity.navigateToServerDetail(mockServerModel); verify(mockNavigator).navigateToServerFoundActivity(serverSearchActivity, mockServerModel); }