public static Config configFromYaml(File yamlFile) throws Exception {
        return parseYaml(yamlFile, RunAirborneOnKafkaNop.Config.class);
    }
@Test
    public void canBuildConfigFromYaml() throws Exception {

        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        File yamlFile = new File(classLoader.getResource("fullAirborneConfig.yaml").getFile());

        RunAirborneOnKafkaNop.Config config = configFromYaml(yamlFile);

        config.airFactory(); //fails if the AirborneFactory can't be made
        verifyKafkaProps(config.inputKafkaProps());
        verifyOptions(config.options());
        config.partitionMap(); //fails if the mapping can't be made

        assertThat(config.loggingPeriod(), is(Duration.ofSeconds(15243)));
    }