}
@Test
public void shoudRegisterInterceptorsInInterceptorRegistry() {
InterceptorRegistry registry = instanceFor(InterceptorRegistry.class);
assertThat(registry.all(), hasOneCopyOf(InterceptorInTheClasspath.class));
}
private <T> T instanceFor(final Class<T> component) {
return cdiBasedContainer.instanceFor(component);
}