@Test(expected = SQLException.class)
@SneakyThrows
public void assertConstructorWithSqlException() {

    ResultSet resultSet = getResultSet();
    when(resultSet.next()).thenThrow(new SQLException());
    new MemoryQueryResult(resultSet);
}