@Test
public void assertGetValueByChar() throws SQLException {

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