@Test
 public void testSetAbstractBoard() {
   abg.setAbstractBoard(
       new AbstractBoard(MockData.CHESS_DIMENSION, MockData.CHESS_DIMENSION - 1, 1));
   assertFalse(abg.getAbstractBoard().equals(MockData.abstractBoard()));
   assertTrue(abg.getByLocation(new Location(7, 7, 0)) == null);
   assertTrue(abg.getByLocation(new Location(6, 6, 0)) != null);
 }
 @Test
 public void testGetPieceLocation() {
   abg = MockData.abstractBoardGame();
   Piece p = MockData.pieceFactory().createPawn(Color.BLACK);
   Location l = new Location(7, 7, 0);
   abg.addPiece(p, l);
   assert (abg.getByLocation(l).equals(p));
   assert (abg.getByPiece(p).equals(l));
 }
  @Test
  public void testAbg_TR() {
    abg = MockData.abstractBoardGame();
    Piece p = MockData.pieceFactory().createPawn(Color.BLACK);
    Location l1 = new Location(7, 7, 0);
    Location l2 = new Location(7, 6, 0);
    abg.addPiece(p, l1);

    abg.abg_TR(p, l1, l2);
    assert (abg.getByLocation(l1) == null);
    assert (abg.getByLocation(l2).equals(p));
  }
 @Test
 public void testGetByLocation() {
   Piece piece = abg.getByLocation(new Location(7, 7, 0));
   assertTrue(piece.getName().equals(ChessConstants.NAME_ROOK));
   assertTrue(piece.getColor().equals(Color.BLACK));
 }