LoginViewModel implements ViewModel { public void onClickLoginButton(@SuppressWarnings("unused") View view) { navigator.startCustomTab(AnnictClient.getOAuthUrl()); } @Inject  LoginViewModel(PageNavigator navigator); void onClickLoginButton(@SuppressWarnings("unused") View view); @Override void destroy();  }
@Test public void testOnClickLoginButton() { loginViewModel.onClickLoginButton(null); verify(navigator, times(1)).startCustomTab(AnnictClient.getOAuthUrl()); }