@Test
public void testShowError() throws Exception {

  tested.showLoading();
  tested.showError(emptyError);
  assertThat(tested.refreshLayout.isRefreshing()).isFalse();
  assertThat(tested.getChildAt(1)).isEqualTo(emptyView);
  tested.showLoading();
  tested.showError(networkError);
  assertThat(tested.refreshLayout.isRefreshing()).isFalse();
  assertThat(tested.getChildAt(1)).isEqualTo(errorView);
}