assertEquals(1, hitCounter.getHits());
}
@Test
public void knownStatusIsMonitored() throws IOException, InterruptedException {
final Role role = new Role("/sirona-test-HTTP-200", Unit.UNARY);
final int before = statusGaugeSum(role);
final TextPage page = newClient().getPage(base.toExternalForm() + "hit");
assertEquals(HttpURLConnection.HTTP_OK, page.getWebResponse().getStatusCode());
Thread.sleep(1000);
assertEquals("" + Repository.INSTANCE.getGaugeValues(0, System.currentTimeMillis() + 1000, role), 1, statusGaugeSum(role) - before);