@Test
public void willFillMultipleBoxesForMultiLinedSelectedText()
{
container = new limelight.ui.model.text.MockTextContainer();
container.bounds = new Box(0, 0, 150, 30);
model = new limelight.ui.model.text.MultiLineTextModel(container);
model.setTypedLayoutFactory(MockTypedLayoutFactory.instance);
model.setText("This is some\nMulti lined text");
model.startSelection(TextLocation.at(0, 2));
model.setCaretLocation(TextLocation.at(1, 5));
painter.paint(graphics, model);
assertEquals(new Box(20, 0, 130, 10), graphics.filledShapes.get(0).shape);
assertEquals(new Box(0, 11, 50, 10), graphics.filledShapes.get(1).shape);
}