}
@Test
public void testCornerDiagonalAttack() {
board.addQueenAt(new XYLocation(0, 0));
// forwardDiagonal from the queen
Assert.assertTrue(board.isSquareUnderAttack(new XYLocation(1, 1)));
board.clear();
board.addQueenAt(new XYLocation(7, 7));
// backwardDiagonal from the queen
Assert.assertTrue(board.isSquareUnderAttack(new XYLocation(6, 6)));
// assertTrue(board.isSquareUnderAttack(new XYLocation(2, 2)));
// assertTrue(board.isSquareUnderAttack(new XYLocation(2, 4)));
}