@Test
public void assertGetValueByBit() throws SQLException {

    when(resultSetMetaData.getColumnType(1)).thenReturn(Types.BIT);
    byte[] bytes = {1};
    when(resultSet.getObject(1)).thenReturn(bytes);
    assertThat((byte[]) QueryResultUtil.getValue(resultSet, 1), is(bytes));
}