@Test
public void clobToStringTest() throws SQLException {

    String TEST = "TEST";
    StringReader testReader = new StringReader(TEST);
    when(clob.getCharacterStream()).thenReturn(testReader);
    assertEquals(TEST, JDBCUtils.clobToString(clob));
    assertTrue(JDBCUtils.clobToString(null).isEmpty());
    when(clob.getCharacterStream()).thenThrow(new RuntimeException());
    assertTrue(JDBCUtils.clobToString(clob).isEmpty());
}