code: @Test public void should_fail_if_actual_size_is_not_equal_to_other_size(){
    AssertionInfo info=someInfo();
    Collection<String> actual=newArrayList("Yoda");
    Collection<String> other=newArrayList("Solo","Luke","Leia");
    try {
      iterables.assertHasSameSizeAs(info,actual,other);
    }
   catch (  AssertionError e) {
      assertThat(e).hasMessage(shouldHaveSameSizeAs(actual,actual.size(),other.size()).create(null,info.representation()));
      return;
    }
    failBecauseExpectedAssertionErrorWasNotThrown();
  }
  