@Test
public void testDetectYamlFile() throws JsonReferenceException, IOException {

    File file = resourceAsFile("a.yaml");
    String expected = "{\"a\":3}";
    JsonReferenceProcessor processor = new JsonReferenceProcessor();
    JsonNode node = processor.process(file);
    ObjectMapper mapper = new ObjectMapper();
    String json = mapper.writeValueAsString(node);
    assertThat(json, equalTo(expected));
}