DataRow { public String getStringValue(String columnName) { return String.valueOf(values.get(columnName)); } DataRow(ResultSet rs, ResultSetMetaData rsmd);  DataRow(Map<String, Object> rowValues); Set<String> getColumnNames(); String getStringValue(String columnName); boolean matches(final Map<String, Object> keyProperties); Object get(String key); @Override String toString();  }
@Test public void testDataRowStringValueOfExistingColumns() { assertThat(row.getStringValue("c0"), is("2")); assertThat(row.getStringValue("c1"), is("4")); }
@Test public void testDataRowStringValueOfNullCells() { row = rb.createRow(2, null); assertThat(row.getStringValue("c1"), is("null")); }
@Test public void testDataRowStringValueOfMissingColumn() { assertThat(row.getStringValue("NO-SUCH-COLUMN"), is("null")); }