Board implements IBoard { @Override public Point getDimension() { return new Point(dimX, dimY); } Board(final int dimX, final int dimY); private  Board(final BoardState state); @Override IField getField(final int x, final int y); @Override Point getDimension(); @Override int getFlagCount(); @Override int getOpenCount(); void openAllFlaggedOrBomb(); @Override String toString(); @Override Point getPosition(final IField field); @Override boolean isOverflagged(); boolean isExploded(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testGetDimension() { Point dimension = itsBoard.getDimension(); assertEquals(2, dimension.x); assertEquals(2, dimension.y); }