### Question:
ReadOnlyRowId extends RowId { @Override public String toString() { return String.valueOf(getRowNum()); } ReadOnlyRowId(int rowNum); @Override int hashCode(); @Override boolean equals(Object obj); int getRowNum(); @Override String toString();  }### Answer:
@Test public void toString_rowNumberIsReturned() { int i = 1; ReadOnlyRowId rowId = new ReadOnlyRowId(i); Assert.assertEquals("Unexpected toString value", String.valueOf(i), rowId.toString()); }
@Test public void toString_rowNumberIsReturned() { int i = 1; ReadOnlyRowId rowId = new ReadOnlyRowId(i); assertEquals("Unexpected toString value", String.valueOf(i), rowId.toString()); }