DetailsKeysExtension extends Grid.AbstractGridExtension { public static DetailsKeysExtension extend(Grid grid) { return new DetailsKeysExtension(grid); } private  DetailsKeysExtension(final Grid grid); static DetailsKeysExtension extend(Grid grid);  }
@Test public void testExtend() throws Exception { Grid grid = createTestGrid(); assertFalse(containsDetailsGridExtension(grid)); DetailsKeysExtension extension = DetailsKeysExtension.extend(grid); assertTrue(containsDetailsGridExtension(grid)); assertTrue(hasDetailsGridExtensionRpc(extension)); }