source: class FieldTest {
  
      private static final int TOUCHED_STATE;
      private static final int EXPLODED_STATE;
      private static final int FLAGGED_STATE;
      private static final int OPEN_STATE;
      private static final int BOMB_STATE;
      private Field itsField;
  
      @Test
      public void testGetNeighborFlags() {
  
target:         Field[] neighbors = createFields(3);
          itsField.setNeighbors(neighbors);
          for (int index = 0; index < neighbors.length; index++) {
              neighbors[index].setFlagged(true);
          }
          assertEquals(neighbors.length, itsField.getNeighborFlags());
      }
  
  }