@Test
public void duplicate_keys_fail_to_parse() throws Exception {

    assertThatThrownBy(() -> ConjureParser.parse(new File("src/test/resources/duplicate-keys.yml")))
            .hasMessageContaining("Duplicate field 'services'");
}