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

    File file = resourceAsFile("remote.json");
    JsonNode node = (new JsonReferenceProcessor()).process(file);
    ObjectMapper mapper = new ObjectMapper();
    File outFile = new File("out.json");
    mapper.writeValue(outFile, node);
    // expecting the output to be of a certain length
    long fileLength = file.length();
    assertThat(outFile.length(), greaterThan(fileLength));
    assertThat(outFile.length(), greaterThan(JSON_SCHEMA_LENGTH));
}