BoardState { public int getFieldState(int x, int y) { return itsFieldStates[x*itsDimY+y]; } BoardState(int dimX, int dimY, int[] fieldStates); static BoardState createFromBoard(Board board); int getDimX(); int getDimY(); int getFieldState(int x, int y); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testGetFieldState() { assertEquals(0, itsBoardState.getFieldState(0, 0)); }