ComponentPropertyGenerator extends PropertyValueGenerator<Component> { @Override public Class<Component> getType() { return Component.class; } ComponentPropertyGenerator(Class<T> typeOfRows, ComponentGenerator<T> generator); @Override Component getValue(Item item, Object itemId, Object propertyId); @Override SortOrder[] getSortProperties(SortOrder order); @Override Class<Component> getType();  }
@Test public void testGetType() { assertThat(generator.getType(), CoreMatchers.<Class<Component>>is(Component.class)); }