### Question:
Cube { @Override public String toString() { StringBuilder result = new StringBuilder(); result.append(" ").append(up().getLine(0)).append(" \n"); result.append(" ").append(up().getLine(1)).append(" \n"); result.append(" ").append(up().getLine(2)).append(" \n"); result.append(left().getLine(0)).append(' ').append(front().getLine(0)).append(' ').append(right().getLine(0)).append(' ').append(back().getLine(0)).append("\n"); result.append(left().getLine(1)).append(' ').append(front().getLine(1)).append(' ').append(right().getLine(1)).append(' ').append(back().getLine(1)).append("\n"); result.append(left().getLine(2)).append(' ').append(front().getLine(2)).append(' ').append(right().getLine(2)).append(' ').append(back().getLine(2)).append("\n"); result.append(" ").append(down().getLine(0)).append(" \n"); result.append(" ").append(down().getLine(1)).append(" \n"); result.append(" ").append(down().getLine(2)).append(" \n"); return result.toString(); } Cube(); void init(); String getFace(Face name); FaceValue face(Face name); @Override String toString(); void doCommand(String stringCommand); Edges getEdges(); boolean isSolved();  }### Answer:
@Test public void testToString() { assertCube("", INIT); }