ComponentGridDecorator implements Serializable { public Grid getGrid() { return grid; } 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 testGetGrid() { Grid grid = createTestGrid(); ComponentGridDecorator<ExampleBean> decorator = new ComponentGridDecorator<>(grid, ExampleBean.class); assertThat(grid, is(sameInstance(decorator.getGrid()))); }