    @Test(expected = IllegalArgumentException.class)
    public void testGetErrorGraphForNonExistantCategory() {

        long duration = 3600;// in secs
        int aggregationPeriod = 60;// in secs
        MetricCriteria metricCriteria = new MetricCriteria();
        metricCriteria.setFirstStartTime(twoMinutesAgo);
        metricCriteria.setDuration(duration);
        metricCriteria.setAggregationPeriod(aggregationPeriod);
        metricCriteria.setRoleType("server");

        List<MetricGraphData> result = provider.getErrorGraph("service_3", null, null, null, "NonExistantCategory",
                        null, metricCriteria);

    }