DefaultEntityMetadataConfigurationUnitBuilder extends AbstractFieldSetConfigurationBuilder<EntityMetadataConfigurationUnit, EntityMetadataConfigurationUnitBuilder> implements EntityMetadataConfigurationUnitBuilder { @Override public EntityMetadataConfigurationUnit build() { addCurrentFieldToUnit(); return configurationUnit; } DefaultEntityMetadataConfigurationUnitBuilder(Class<?> domainType); @Override EntityMetadataConfigurationUnitBuilder nameField(final String nameField); @Override EntityMetadataConfigurationUnitBuilder nameExtractor(final EntityNameExtractor<?> nameExtractor); @Override EntityMetadataConfigurationUnitBuilder singularName(final String singularName); @Override EntityMetadataConfigurationUnitBuilder pluralName(final String pluralName); @Override EntityMetadataConfigurationUnitBuilder repositoryEventListener(Class<? extends AbstractRepositoryEventListener> listenerClass); @Override EntityMetadataConfigurationUnit build();  }
@Test public void defaultConfigurationUnitCreatedForDomainType() throws Exception { final EntityMetadataConfigurationUnit configurationUnit = configurationBuilder().build(); assertEquals(DomainConfigurationUnitType.CONFIGURATION, configurationUnit.getDomainConfigurationUnitType()); assertEquals(DomainType.class, configurationUnit.getDomainType()); }