@Test
public final void testGetComponentClass() throws IOException {

    FacesRequest facesRequest = startFacesRequest();
    FacesContext facesContext = FacesContext.getCurrentInstance();
    AbstractDataGrid component = (AbstractDataGrid) facesContext.getViewRoot().findComponent("dataGrid");
    DataGridRenderer renderer = (DataGridRenderer) FacesContext.getCurrentInstance().getRenderKit()
        .getRenderer(component.getFamily(), component.getRendererType());
    assertEquals(AbstractDataGrid.class, renderer.getComponentClass());
    facesRequest.release();
}