@@ -0,0 +1,832 @@
+package org.jtext.ui.graphics;%0A%0Aimport org.hamcrest.core.Is;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A%0Apublic class RectangleTest %7B%0A%0A%0A    @Test%0A    public void shouldResize() throws Exception %7B%0A        assertThat(Rectangle.of(0,0,5,5).resize(Dimension.of(10, 10)), is(Rectangle.of(0, 0, 10, 10)));%0A    %7D%0A%0A    @Test%0A    public void shouldCalculateEdges() throws Exception %7B%0A%0A        // given%0A        final Rectangle rectangle = Rectangle.of(23, 75, 19, 10);%0A%0A        // when%0A        assertThat(rectangle.topLeft(), is(Point.at(23, 75)));%0A        assertThat(rectangle.topRight(), is(Point.at(41, 75)));%0A        assertThat(rectangle.bottomLeft(), is(Point.at(23, 84)));%0A        assertThat(rectangle.bottomRight(), is(Point.at(41, 84)));%0A    %7D%0A%0A%7D

introduce RectangleTest