ComponentGrid extends Grid { public FocusPreserveExtension getFocusPreserveExtension() { return componentGridDecorator.getFocusPreserveExtension(); } ComponentGrid(Class<T> typeOfRows); ComponentGridDecorator<T> getComponentGridDecorator(); FocusPreserveExtension getFocusPreserveExtension(); ComponentGrid<T> remove(T bean); ComponentGrid<T> add(T bean); ComponentGrid<T> addAll(Collection<T> beans); Grid.Column addComponentColumn(Object propertyId, ComponentGenerator<T> generator); ComponentGrid<T> refresh(); ComponentGrid<T> setRows(Collection<T> beans); ComponentGrid<T> generateHeaders(ComponentHeaderGenerator generator); ComponentGrid<T> generateHeaders(TextHeaderGenerator generator); ComponentGrid<T> generateHeaders(HtmlHeaderGenerator generator);  }
@Test public void testGetFocusPreserveExtension() { ComponentGrid grid = createTestGrid(); FocusPreserveExtension focusPreserveExtension = (FocusPreserveExtension) extractExtension(grid, FocusPreserveExtension.class); assertThat(focusPreserveExtension, is(sameInstance(grid.getFocusPreserveExtension()))); }