  @Test
  public void givenCustomIconsInAttrs_whenCreatedAndVisibilityToggled_thenHasCustomShownIcon() {

    AttributeSet attrs = createCustomIconsAttributeSet();

    PasswordEditText actual = new PasswordEditText(RuntimeEnvironment.application, attrs, 0);
    actual.togglePasswordVisibility();

    assertThat(actual).hasToggle(R.drawable.ic_icon_square);
  }