    @Test
    public void setFieldHint_setsHintWhenParentViewIsATextInputLayout() {

        mView = (CardEditText) Robolectric.setupActivity(TestActivity.class)
                .findViewById(R.id.bt_card_form_card_number);

        mView.setFieldHint(R.string.bt_form_hint_cvv);

        assertEquals("CVV", ((TextInputLayout) mView.getParent().getParent()).getHint());
        assertEquals("CVV", mView.getHint());
    }