@Test
  public void testWidth() {
    // The width stays consistent irrespective of alignment.
    BetterImageSpan span = new BetterImageSpan(mDrawable, mAlignment);
    int size = span.getSize(null, null, 0, 0, null);
    assertThat(size).isEqualTo(mDrawableWidth);
  }
Tests the dimensions assigned by {@link BetterImageSpan} ensuring the width/height of is
calculated correctly for different combinations of image and text height, as well as span
alignment.
fbcore/src/test/java/com/facebook/widget/text/span/BetterImageSpanTest.java