@Test
public void assertGetValueByBinary() throws SQLException {

    Blob blob = mock(Blob.class);
    when(resultSetMetaData.getColumnType(1)).thenReturn(Types.BINARY);
    when(resultSet.getBlob(1)).thenReturn(blob);
    assertThat((Blob) QueryResultUtil.getValue(resultSet, 1), is(blob));
}