ExportDelegateImpl implements ExportDelegate { @Override @SuppressWarnings("unchecked") public <ID extends Serializable, T extends AbstractEntity<ID>> void exportFixed(EntityModel<T> entityModel, ExportMode mode, Collection<T> items) { FixedExportDialog<ID, T> dialog = new FixedExportDialog<>(exportService, entityModel, mode, (CustomXlsStyleGenerator<ID, T>) customStyleMap.get(entityModel), () -> Lists.newArrayList(items)); dialog.buildAndOpen(); }  void addCustomStyleGenerator(EntityModel<?> entityModel, CustomXlsStyleGenerator<?, ?> generator); @Override @SuppressWarnings("unchecked") void export(EntityModel<T> entityModel, ExportMode mode,
            SerializablePredicate<T> predicate, List<SortOrder<?>> sortOrders, FetchJoinInformation... joins); @Override @SuppressWarnings("unchecked") void exportFixed(EntityModel<T> entityModel, ExportMode mode,
            Collection<T> items); @Override @SuppressWarnings("unchecked") void exportPivoted(EntityModel<T> entityModel,
            SerializablePredicate<T> predicate, List<SortOrder<?>> sortOrders, PivotParameters pivotParameters,
            FetchJoinInformation... joins);  }
@Test public void testExportFixed() { EntityModel<TestEntity> em = factory.getModel(TestEntity.class); delegate.exportFixed(em, ExportMode.FULL, new ArrayList<>()); }