@Test
public void testGetNeighborFlags() {

    Field[] neighbors = createFields(3);
    itsField.setNeighbors(neighbors);
    for (int index = 0; index < neighbors.length; index++) {
        neighbors[index].setFlagged(true);
    }
    assertEquals(neighbors.length, itsField.getNeighborFlags());
}