@Test
public void testCenter() throws Exception {

    Region r1 = new Region(1, 2);
    assertEquals(1.5, r1.center());
    Region r2 = new Region(-10, 10);
    assertEquals(0.0, r2.center());
    Region r3 = new Region(-2, -1);
    assertEquals(-1.5, r3.center());
}