@Test(expected = NullPointerException.class)
public void testProcessRecordMissingMetric() throws Exception {

    Record record = new Record();
    record.attributes = new TreeMap<>();
    record.attributes.put("attr1", "foo");
    record.attributes.put("attr2", "bar");
    record.values = new HashMap<>();
    GoogleMonitoringIngester ingester = new GoogleMonitoringIngester(conf);
    ingester.processRecord(record);
}