### Question:
Move implements Serializable { @Override public String toString() { final StringBuilder sb = new StringBuilder(getClass().getSimpleName()); sb.append("[piece=").append(_piece); sb.append(",from=").append(_from); sb.append(",to=").append(_to); sb.append(",captured=").append(_captured).append(']'); return sb.toString(); } Move(final Piece pPiece, final Square pOrigine, final Square pDestination);  Move(final Piece pPiece, final Square pOrigine, final Square pDestination,
      final Piece pPrise); @Override boolean equals(final Object pObjet); Piece getCaptured(); Square getFrom(); Piece getPiece(); Square getTo(); @Override int hashCode(); int toId(); @Override String toString(); static Move valueOf(final int pId);  }### Answer:
@Test public void testToString() { final Move mvt = new Move(WHITE_BISHOP, Square.valueOf("a3"), Square.valueOf("d6"), BLACK_PAWN); final String attendu = "Move[piece=WHITE_BISHOP,from=Square[file=a,rank=3]," + "to=Square[file=d,rank=6],captured=BLACK_PAWN]"; assertEquals(attendu, mvt.toString()); }