assertThat(values.get("service.warn.1MinuteRate").get(), is(new BigDecimal("0.78")));
}
@Test
public void exceptionGettingDataFromGraphiteIsHandled() throws Exception {
when(mockGraphiteHttpClient.getTargetJson("service.*.1MinuteRate", null, null)).thenThrow(new GraphiteReadException("Graphite bad times", new RuntimeException("Bad times")));
Map<String, Optional<BigDecimal>> values = checker.check(checkWithTarget("service.*.1MinuteRate"));
assertThat(values.size(), is(0));
}