@Test
public void testGetQueriesUsesDefaults() throws Exception {

    GoogleMonitoringIngester ingester = new GoogleMonitoringIngester(conf);
    QueryConf queryConf = ingester.getQueries(
        "{`queries`: [{`project`: `some-project`, `filter`: `metric.type=\\`custom.googleapis.com/test\\``}]}".replace('`', '"'));
    assertEquals(1, queryConf.getQueries().size());
    QueryConf.Query query = queryConf.getQueries().get(0);
    assertEquals("some-project", query.getProject());
    assertEquals("metric.type=\"custom.googleapis.com/test\"", query.getFilter());
    assertEquals("", query.getAlignmentPeriod());
    assertEquals("ALIGN_NONE", query.getPerSeriesAligner());
    assertEquals("REDUCE_NONE", query.getCrossSeriesReducer());
    assertEquals(0, query.getGroupByFields().size());
}