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

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