@Test
public void testSettingBadWindowMillisThrowsException() {

    try {
        impl.setWindowMillis(0);
        fail("should have thrown IllegalArgumentException");
    } catch (IllegalArgumentException iae) {
        // this is expected. ignore and let test pass.
    }
}