@Test
public void shouldReturnZeroForCountOfRepositoryPresenterOfFailedResult() {

  final RepositoryPresenter<Result<String>> resultRepositoryPresenter =
      dataBindingRepositoryPresenterOf(String.class)
          .layout(LAYOUT_ID)
          .itemId(ITEM_ID)
          .handler(HANDLER_ID, HANDLER)
          .forResult();
  assertThat(resultRepositoryPresenter.getItemCount(FAILURE), is(0));
}