### Question:
GraphQLIntrospectionFileGenerator { public void generate(String sourceSdlResource, String targetIntrospectionFile) { String schema = readResource(sourceSdlResource); TypeDefinitionRegistry registry = new SchemaParser().parse(schema); RuntimeWiring wiring = RuntimeWiring .newRuntimeWiring() .scalar(objectNodeScalar()) .build(); GraphQLSchema graphQLSchema = new SchemaGenerator().makeExecutableSchema(registry, wiring); GraphQL graphql = GraphQL.newGraphQL(graphQLSchema).build(); String introspectionQuery = readResource("introspection.query"); ExecutionResult result = graphql.execute(introspectionQuery); String introspectionJson = serializeToJson(result); writeFile(targetIntrospectionFile, introspectionJson); }  void generate(String sourceSdlResource, String targetIntrospectionFile);  }### Answer:
@Test public void test() throws Exception { GraphQLIntrospectionFileGenerator underTest = new GraphQLIntrospectionFileGenerator(); File introspectionFile = temp.newFile("schema.json"); underTest.generate("test.graphql.txt", introspectionFile.getAbsolutePath()); JsonNode jsonNode = new ObjectMapper().readTree(introspectionFile); JsonNode errors = jsonNode.get("errors"); assertThat(errors.isArray(), is(true)); assertThat(errors.size(), is(0)); JsonNode data = jsonNode.get("data"); assertThat(data.isObject(), is(true)); }