AbstractDomainProvider implements DomainProvider { @Override public Class<? extends DomainEvents> getDomainEventInterface() { return domainEventInterface; } @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 testParameterizedDomainEvents_shouldExtractDomainEventsInterfaceFromGenerics() throws Exception { Assert.assertEquals(NullDomainEvents.class, provider.getDomainEventInterface()); }