{
container.getStyle().setHorizontalAlignment("center");
model.setText("1 line\nand\nanother line\n.");
model.setCaretLocation(TextLocation.at(0, 0));
assertEquals(new Box(45, 0, 1, 10), model.getCaretShape());
model.setCaretLocation(TextLocation.at(1, 0));
assertEquals(new Box(60, 11, 1, 10), model.getCaretShape());
model.setCaretLocation(TextLocation.at(2, 0));
assertEquals(new Box(15, 22, 1, 10), model.getCaretShape());
model.setCaretLocation(TextLocation.at(3, 0));
assertEquals(new Box(70, 33, 1, 10), model.getCaretShape());
}