@Test
public void assertGetValueByVarchar() throws SQLException {

    when(resultSetMetaData.getColumnType(1)).thenReturn(Types.VARCHAR);
    when(resultSet.getString(1)).thenReturn("xxxxx");
    assertThat((String) QueryResultUtil.getValue(resultSet, 1), is("xxxxx"));
}