@Test
public void testShowError() throws Exception {

    mListingActivity.showError(new Exception("Test message"));
    assertFalse("Loading indicator is visible", mProgressBar.isShown());
    assertFalse("content is visible", mRecyclerView.isShown());
    assertTrue("Error textview is not visible", mErrorTextView.isShown());
    assertEquals("Error textview hasn't got proper message",
            "Test message", mErrorTextView.getText().toString());
}