@Test
  public void
      givenUnjoinableBoxFollowedByJoinableBoxWithoutProperSplitPointAtLineEnd_whenAdditionalBoxWithoutProperSplitPointDoesNotFitIntoLine_shouldRemoveOriginalLastBox()
          throws Exception {
    final List<IInlineBox> boxes = boxes(square(10), staticText("L"), staticText("or"));
    lines.arrangeBoxes(graphics, boxes.listIterator(), 18, TextAlign.LEFT);

    for (final IInlineBox box : boxes) {
      if (box.getWidth() == 0) {
        fail("Splitting left over an empty box.");
      }
    }
  }
 private void layout(final List<IInlineBox> boxes) {
   for (final IInlineBox box : boxes) {
     box.layout(graphics);
   }
 }