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

    File file = resourceAsFile("nest.json");
    String expected = "{\"a\":3,\"b\":4,\"c\":{\"q\":{\"$ref\":\"a.json#\"}},\"nest\":[{\"ok\":\"yes\",\"why\":{\"b\":4}},\"a\"]}";
    JsonNode node = (new JsonReferenceProcessor()).process(file);
    ObjectMapper mapper = new ObjectMapper();
    String json = mapper.writeValueAsString(node);
    assertThat(json, equalTo(expected));
}