@Test
public void shouldDisplayError() throws Exception {

  serverFoundActivity.showError("Something came up");
  Toast latestToast = ShadowToast.getLatestToast();
  String textOfLatestToast = ShadowToast.getTextOfLatestToast();
  assertThat(latestToast, notNullValue());
  assertThat(latestToast.getDuration(), is(Toast.LENGTH_LONG));
  assertThat(textOfLatestToast, notNullValue());
  assertThat(textOfLatestToast, is("Something came up"));
}