DefaultFiltersConfigurationUnitBuilder extends DomainTypeConfigurationUnitBuilder<FiltersConfigurationUnit> implements FiltersConfigurationUnitBuilder { @Override public FiltersConfigurationUnit build() { return new DefaultFiltersConfigurationUnit(getDomainType(), filtersMetadata); } DefaultFiltersConfigurationUnitBuilder(final Class<?> domainType); @Override FiltersConfigurationUnitBuilder filter(final String filterName, String fieldName); @Override FiltersConfigurationUnitBuilder filters(FilterMetadata... filters); @Override FiltersConfigurationUnitBuilder renderer(final Renderer renderer); @Override FiltersConfigurationUnit build();  }
@Test public void defaultConfigurationUnitCreatedForDomainType() throws Exception { final FiltersConfigurationUnit configurationUnit = defaultFiltersBuilder().build(); assertEquals(DomainConfigurationUnitType.FILTERS, configurationUnit.getDomainConfigurationUnitType()); assertEquals(DomainType.class, configurationUnit.getDomainType()); }