@Test
@SneakyThrows
public void assertGetValueByClob() {

    Clob clob = mock(Clob.class);
    when(resultSetMetaData.getColumnType(1)).thenReturn(Types.CLOB);
    when(resultSet.getClob(1)).thenReturn(clob);
    assertThat((Clob) QueryResultUtil.getValue(resultSet, 1), is(clob));
}