BigQueryMetricsReporter extends FixedRateAbstractPollingReporter { @VisibleForTesting protected TableSchema parseSchema() throws IOException { return jsonFactory.fromInputStream( BigQueryMetricsReporter.class.getResourceAsStream(SCHEMA_RESOURCE), TableSchema.class); } BigQueryMetricsReporter(
      MetricRegistry metricRegistry,
      ScheduledExecutorService executor,
      Bigquery bigquery,
      JsonFactory jsonFactory,
      Clock clock,
      InstanceMetadata metadata,
      String apiProjectId,
      String datasetName); @Override void start(long period, TimeUnit unit); @Override void run();  }
@Test public void testLoadingSchema() throws IOException { TableSchema schema = reporter.parseSchema(); assertNotNull(schema.getFields()); assertTrue(schema.getFields().size() > 0); }