130131132133134135136137138139140
assertEquals(data, get("/bandwidth")); assertEquals(79, meter.getBytesSent()); assertEquals(94, meter.getBytesReceived()); meter.reset(); assertEquals(0, meter.getBytesSent()); assertEquals(0, meter.getBytesReceived()); } @Test