@Test
public void init1hz() {

    RefreshRateEstimator estimator = new RefreshRateEstimator();
    estimator.addSample(0);
    estimator.addSample(1000);
    assertEquals(1.0, estimator.refreshRate, 0.01);
    estimator.addSample(2000);
    estimator.addSample(3000);
    assertEquals(1.0, estimator.refreshRate, 0.01);
}