@Test
public void init5hz() {

    RefreshRateEstimator estimator = new RefreshRateEstimator();
    estimator.addSample(0);
    estimator.addSample(200);
    assertEquals(5.0, estimator.refreshRate, 0.01);
    estimator.addSample(400);
    estimator.addSample(600);
    assertEquals(5.0, estimator.refreshRate, 0.01);
}