@Test
public void testInvalidMetricQuerySource() {

        try {
                Map<String, String> invalidMetricSourceSinkConfigMap = new HashMap<>();
                invalidMetricSourceSinkConfigMap.put("urlTemplate",
                                "http://graphite/render?format=json&target=");
                invalidMetricSourceSinkConfigMap.put("metric-source", "bad-metric-source");
                Config invalidMetricSourceSinkConfig = ConfigFactory.parseMap(invalidMetricSourceSinkConfigMap);
                Instant fixedInstant = Instant.parse("2020-03-03T05:05:39Z");
                MetricQueryService metricQueryService = new MetricQueryService(httpClient);
                metricQueryService.queryMetricSource(invalidMetricSourceSinkConfig, metricFunctionsSpec, fixedInstant);
        } catch (IllegalStateException e) {
                                
                assertTrue(true);
        }
}