### Question:
FaceValue { public void updateRow(int row, Line data) { for (int index = 0; index < 3; index ++) { colors[index][row] = data.get(index); } } FaceValue(Elements fill); private  FaceValue(); @Override String toString(); Line getLine(int line); Line getRow(int row); void updateLine(int line, Line data); void updateRow(int row, Line data); void rotateClockwise(); Elements get(Neighbor neighborFace); boolean isSolved();  }### Answer:
@Test public void testUpdateRow() { FaceValue face = new FaceValue(Elements.BLUE); assertEquals( "BBB" + "BBB" + "BBB", face.toString()); face.updateRow(0, new Line("YGO")); assertEquals( "YBB" + "GBB" + "OBB", face.toString()); face.updateRow(1, new Line("GRY")); assertEquals( "YGB" + "GRB" + "OYB", face.toString()); face.updateRow(2, new Line("ORG")); assertEquals( "YGO" + "GRR" + "OYG", face.toString()); assertEquals("YGO", face.getRow(0).toString()); assertEquals("GRY", face.getRow(1).toString()); assertEquals("ORG", face.getRow(2).toString()); }