public Point getCenter() {
        return new Point(getCenterX(), getCenterY());
    }
@Test
    public void getCenterTest() {
        Rectangle rectangle = create(1, 2, 3, 4);
        Assert.assertEquals(new Point(2, 3), rectangle.getCenter());
    }