@Test
public void ignoresKnownExceptions() {

    ServiceTrait trait = ServiceTrait.builder()
            .sdkId("Foo")
            .arnNamespace("cloudwatch")
            .cloudTrailEventSource("monitoring.amazonaws.com")
            .cloudFormationName("AWS::Foo")
            .build();
    ServiceShape service = ServiceShape.builder()
            .id("smithy.example#Foo")
            .version("123")
            .addTrait(trait)
            .build();
    Model model = Model.builder().addShape(service).build();
    EventSourceValidator validator = new EventSourceValidator();
    List<ValidationEvent> events = validator.validate(model);
    Assertions.assertThrows(RuntimeException.class, () -> getMatchingEvent(events, validator.getName()));
}