@Test public void testCurrentEventTime() throws Exception { @SuppressWarnings("unchecked") Triggerable<Integer, String> mockTriggerable = mock(Triggerable.class); TestKeyContext keyContext = new TestKeyContext(); TestProcessingTimeService processingTimeService = new TestProcessingTimeService(); HeapInternalTimerService<Integer, String> timerService = createTimerService( mockTriggerable, keyContext, processingTimeService, testKeyGroupRange, maxParallelism); timerService.advanceWatermark(17); assertEquals(17, timerService.currentWatermark()); timerService.advanceWatermark(42); assertEquals(42, timerService.currentWatermark()); }