@Override
    public Collection<Process> swapToObject(final YamlProcessList yamlConfig) {
        return yamlConfig.getProcesses().stream().map(yamlProcessSwapper::swapToObject).collect(Collectors.toList());
    }
@Test
    void assertSwapToObject() {
        YamlProcessList yamlProcessList = new YamlProcessList();
        yamlProcessList.setProcesses(Collections.singleton(createYamlProcess()));
        Collection<Process> actual = new YamlProcessListSwapper().swapToObject(yamlProcessList);
        assertThat(actual.size(), is(1));
        assertProcess(actual.iterator().next());
    }