@Test
public void assertGetValueByNumeric() throws SQLException {

    when(resultSetMetaData.getColumnType(1)).thenReturn(Types.NUMERIC);
    when(resultSet.getBigDecimal(1)).thenReturn(BigDecimal.TEN);
    assertThat((BigDecimal) QueryResultUtil.getValue(resultSet, 1), is(BigDecimal.TEN));
}