Building the AnnotatedType by hand and adding it using AfterTypeDiscovery#addAnnotatedType(AnnotatedType, String) causes the test to pass.