public void testDefaultedUsingDefaultsProviderClass() {
   facetFactory.process(
       new ProcessClassContext(
           MyDefaultedUsingDefaultsProviderClass.class, methodRemover, facetedMethod));
   final DefaultedFacetAbstract facet =
       (DefaultedFacetAbstract) facetedMethod.getFacet(DefaultedFacet.class);
   assertEquals(MyDefaultedUsingDefaultsProviderClass.class, facet.getDefaultsProviderClass());
 }
 public void testNonAnnotatedDefaultedCanBePickedUpFromConfiguration() {
   final String className =
       "org.apache.isis.core.metamodel.facets.object.defaults.DefaultedFacetFactoryTest$NonAnnotatedDefaultedDefaultsProviderSpecifiedUsingConfiguration";
   stubConfiguration.add(
       DefaultsProviderUtil.DEFAULTS_PROVIDER_NAME_KEY_PREFIX
           + canonical(className)
           + DefaultsProviderUtil.DEFAULTS_PROVIDER_NAME_KEY_SUFFIX,
       className);
   facetFactory.process(
       new ProcessClassContext(
           NonAnnotatedDefaultedDefaultsProviderSpecifiedUsingConfiguration.class,
           methodRemover,
           facetedMethod));
   final DefaultedFacetAbstract facet =
       (DefaultedFacetAbstract) facetedMethod.getFacet(DefaultedFacet.class);
   assertNotNull(facet);
   assertEquals(
       NonAnnotatedDefaultedDefaultsProviderSpecifiedUsingConfiguration.class,
       facet.getDefaultsProviderClass());
 }