@Test
public void removeTextWatcher() throws Exception {

    // Given
    TextWatcher watcher = mock(TextWatcher.class);
    given(view.getTag(anyInt()))
            .willReturn(watcher);
    BindingFunction function = TextChangedBindingFunction.create(null);
    // When
    function.bind(view);
    // Then
    verify(view).removeTextChangedListener(watcher);
    verify(view).setTag(R.id.onTextChangedListener, null);
}