@Test
public void assertGetValueByTinyint() throws SQLException {

    when(resultSetMetaData.getColumnType(1)).thenReturn(Types.TINYINT);
    when(resultSet.getByte(1)).thenReturn(Byte.MAX_VALUE);
    assertThat((byte) QueryResultUtil.getValue(resultSet, 1), is(Byte.MAX_VALUE));
}