AbstractDomainProvider implements DomainProvider { @Override public LocalizableString getDescription() { return strings.getString("domain.description"); } @SuppressWarnings("unchecked")  AbstractDomainProvider(); @Override String getId(); void setId(String id); @Override LocalizableString getName(); @Override LocalizableString getDescription(); @Override Class<? extends DomainEvents> getDomainEventInterface(); @Override List<Class<? extends Event>> getEvents(); @Override Class<DomainType> getDomainInterface(); void setBundleContext(BundleContext bundleContext);  }
@Test public void testGetDescription_shouldLookupInDomainDescription() throws Exception { assertThat(provider.getDescription().getString(Locale.getDefault()), is("desc")); }