@Test
public void shouldInvalidateUserNameAndPassword() {

    doCallRealMethod().when(loginActivity).isValid();
    assertFalse(loginActivity.isValid());
    verify(loginActivity).validateTextFieldNotEmpty(userNameView, R.string.username_required);
    verify(loginActivity).validateTextFieldNotEmpty(passwordView, R.string.password_required);
}