@Test
public void shouldBindRepositoryPresenterOfCollection() {

  final RepositoryPresenter<String> repositoryPresenter =
      dataBindingRepositoryPresenterOf(String.class)
          .layout(LAYOUT_ID)
          .itemId(ITEM_ID)
          .forCollection(new Function<String, List<String>>() {
            @NonNull
            @Override
            public List<String> apply(@NonNull final String input) {
              return singletonList(valueOf(input.charAt(0)));
            }
          });
  repositoryPresenter.bind(STRING, 0, viewHolder);
  verify(viewDataBinding).setVariable(ITEM_ID, FIRST_STRING_CHARACTER);
  verify(viewDataBinding).executePendingBindings();
  verifyNoMoreInteractions(viewDataBinding);
}