@Test public void testGet() { assertEquals(Integer.valueOf(5), coord.get(Dimension.X)); assertEquals(Integer.valueOf(5), coord.get(Dimension.Y)); }
@Test public void testAdd() { assertEquals(new Coordinate(8, 9), coord.add(new Coordinate(3, 4))); assertEquals(new Coordinate(2, 1), coord.add(new Coordinate(-3, -4))); }