ComponentGridDecorator implements Serializable { public ComponentGridDecorator<T> refresh() { focusPreserveExtension.saveFocus(); for (Extension extension : grid.getExtensions()) { if (extension instanceof RpcDataProviderExtension) { ((RpcDataProviderExtension) extension).refreshCache(); break; } } focusPreserveExtension.restoreFocus(); return this; } ComponentGridDecorator(Grid grid, Class<T> typeOfRows); FocusPreserveExtension getFocusPreserveExtension(); Grid getGrid(); Grid.Column addComponentColumn(Object propertyId, ComponentGenerator<T> generator); ComponentGridDecorator<T> setRows(Collection<T> beans); ComponentGridDecorator<T> addAll(Collection<T> beans); ComponentGridDecorator<T> remove(T bean); ComponentGridDecorator<T> add(T bean); ComponentGridDecorator<T> refresh(); ComponentGridDecorator<T> generateHeaders(ComponentHeaderGenerator generator); ComponentGridDecorator<T> generateHeaders(TextHeaderGenerator generator); ComponentGridDecorator<T> generateHeaders(HtmlHeaderGenerator generator);  }
@Test public void testRefresh() { Grid grid = createTestGrid(); ComponentGridDecorator<ExampleBean> decorator = new ComponentGridDecorator<>(grid, ExampleBean.class); decorator.refresh(); }