ErrorEditText extends TextInputEditText { public boolean isError() { return mError; } ErrorEditText(Context context);  ErrorEditText(Context context, AttributeSet attrs);  ErrorEditText(Context context, AttributeSet attrs, int defStyle); @Override void onTextChanged(CharSequence text, int start, int lengthBefore, int lengthAfter); void setFieldHint(int hint); void setFieldHint(String hint); @SuppressWarnings("WrongConstant") View focusNextView(); void setOptional(boolean optional); boolean isOptional(); boolean isError(); void setError(@Nullable String errorMessage); boolean isValid(); String getErrorMessage(); void validate(); void closeSoftKeyboard(); @Nullable TextInputLayout getTextInputLayoutParent();  }
@Test public void defaultsToNoError() { assertFalse(mView.isError()); }