@Test
public void testToRectangle() throws Exception {

	RectangleArea rectangle = new RectangleArea(10.5d, 20.5d, 30.5d, 40.5d);
	Rectangle result = rectangle.toRectangle();
	assertThat(result.x, is(11));
	assertThat(result.y, is(21));
	assertThat(result.width, is(31));
	assertThat(result.height, is(41));
}