### Question:
Board extends AbstractBoard<Elements> { @Override public String toString() { StringBuffer result = new StringBuffer(); for (int y = 0; y < size - 3; y++) { for (int x = 0; x < size; x++) { result.append(field[LAYER1][x][y]); } result.append("\n"); } return result.toString(); }  @Override Elements valueOf(char ch); @Override String toString();  }### Answer:
@Test public void shouldToString() { Board board = (Board) new Board().forString( " WWW " + " WWW " + " WWW " + "BBBOOOGGGRRR" + "BBBOOOGGGRRR" + "BBBOOOGGGRRR" + " YYY " + " YYY " + " YYY " + " " + " " + " "); assertEquals( " WWW \n" + " WWW \n" + " WWW \n" + "BBBOOOGGGRRR\n" + "BBBOOOGGGRRR\n" + "BBBOOOGGGRRR\n" + " YYY \n" + " YYY \n" + " YYY \n", board.toString()); }