@Override
    public Job getJobById(UUID id) {
        try (final Connection conn = dataSource.getConnection()) {
            return jobTable(conn)
                    .selectJobById(id)
                    .orElseThrow(() -> new JobNotFoundException(id));
        } catch (SQLException e) {
            throw new StorageException(e);
        }
    }
@Test
    void testGetJobById() throws SQLException {
        when(resultSet.next()).thenReturn(false);

        assertThatThrownBy(() -> jobStorageProvider.getJobById(randomUUID())).isInstanceOf(JobNotFoundException.class);
    }