public double getCenterX() {
        return (this.left + this.right) / 2;
    }
@Test
    public void getCenterXTest() {
        Rectangle rectangle = create(1, 2, 3, 4);
        Assert.assertEquals(2, rectangle.getCenterX(), 0);
    }