### Question:
TableCreator implements ColumnBasedComponentCreator { @Override public ComponentWrapper createComponent(ContainerPmo<?> containerPmo) { Table table = containerPmo.isHierarchical() ? new TreeTable() : new Table(); table.addStyleName(LinkkiTheme.TABLE); table.setHeightUndefined(); table.setWidth("100%"); table.setSortEnabled(false); return new TableComponentWrapper<>(containerPmo.getClass().getSimpleName(), table); }  @Override ComponentWrapper createComponent(ContainerPmo<?> containerPmo); @Override void initColumn(ContainerPmo<?> containerPmo,
            ComponentWrapper tableWrapper,
            BindingContext bindingContext,
            PropertyElementDescriptors elementDesc);  }### Answer:
@Test public void testCreateComponent_PmoClassIsUsedAsId() { TableCreator creator = new TableCreator(); Table table = (Table)creator.createComponent(new TestTablePmo()).getComponent(); assertThat(table.getId(), is("TestTablePmo")); }