### Question:
FloatType extends AbstractSqlType { public String getValue(ResultSet resultSet, int index) throws SQLException { Object value = resultSet.getObject(index); return value != null ? StringConversionUtil.toString(value) : null; } FloatType();  FloatType(String dataType); void bindValue(PreparedStatement ps, int index, String value); String getValue(ResultSet resultSet, int index);  }### Answer:
@Test public void testGetValue() throws Exception { MockResultSet rs = new MockResultSet(); ArrayMap rowData = new ArrayMap(); rowData.put("hoge", 1); rs.addRowData(rowData); rs.next(); FloatType type = new FloatType(); assertEquals("1", type.getValue(rs, 1)); }
@Test public void testGetValue_null() throws Exception { MockResultSet rs = new MockResultSet(); ArrayMap rowData = new ArrayMap(); rowData.put("hoge", null); rs.addRowData(rowData); rs.next(); FloatType type = new FloatType(); assertNull(type.getValue(rs, 1)); }