@Test
public void shouldCreateValidCallingIntent() throws Exception {

  Context mockContext = mock(Context.class);
  ServerModel serverModel = getServerModel();
  Intent callingIntent = ServerFoundActivity.getCallingIntent(mockContext, serverModel);
  assertThat(callingIntent, notNullValue());
  Bundle extras = callingIntent.getExtras();
  assertThat(extras, notNullValue());
  assertThat(extras.containsKey(ServerFoundActivity.KEY_SERVER), is(true));
  assertThat(extras.getParcelable(ServerFoundActivity.KEY_SERVER), notNullValue());
  assertThat(extras.getParcelable(ServerFoundActivity.KEY_SERVER), instanceOf(ServerModel.class));
  ServerModel actualServerModel = extras.getParcelable(ServerFoundActivity.KEY_SERVER);
  assertThat(actualServerModel, notNullValue());
  assertThat(actualServerModel.ip(), notNullValue());
  assertThat(actualServerModel.ip(), is("192.168.15.47"));
}