Array2D { public int getHeight() { return height; } Array2D(int width, int height); void initialise(int x, int y, T val); T get(int x, int y); void set(int x, int y, T val); int getWidth(); int getHeight(); @SuppressWarnings("unchecked") void setDimensions(int width, int height);  }
@Test public void testGetHeight() { assertEquals(30, arr.getHeight()); }