protected final <T> void convertAndProcessJobs(List<T> items, Function<T, Job> toJobFunction) {
        List<Job> jobs = items.stream().map(toJobFunction).filter(Objects::nonNull).collect(toList());
        saveAndRunJobFilters(jobs);
    }
@Test
    void ifProcessToJobListHasNullItIsNotSaved() {
        // GIVEN
        List<Object> items = asList(null, null);
        Function<Object, Job> toJobFunction = x -> (Job) x;

        // WHEN
        task.convertAndProcessJobs(items, toJobFunction);

        // THEN
        verify(storageProvider, never()).save(anyList());
    }