### Question:
Board implements IBoard { @Override public int getOpenCount() { int counter = 0; for (Field field : itsFields) if (field.isOpen()) counter++; return counter; } 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);  }### Answer:
@Test public void testGetBombCount() { open(1, 1); open(0, 0); assertEquals(2, itsBoard.getOpenCount()); }