InitialPropertiesHandler { public void flushPropertyUpdates() { if (!getRegistry().getStateTree().isUpdateInProgress()) { JsMap<Double, JsMap<String, Object>> map = JsCollections.map(); newNodeDuringUpdate .forEach(node -> collectInitialProperties(node, map)); Reactive.addPostFlushListener(() -> doFlushPropertyUpdates(map)); } } InitialPropertiesHandler(Registry registry); void flushPropertyUpdates(); void nodeRegistered(StateNode node); boolean handlePropertyUpdate(MapProperty property);  }
@Test public void flushPropertyUpdates_updateInProgress_noInteractions() { Mockito.when(tree.isUpdateInProgress()).thenReturn(true); handler.flushPropertyUpdates(); Reactive.flush(); Mockito.verify(tree).isUpdateInProgress(); Mockito.verifyNoMoreInteractions(tree); }