Update test case with AnnotationRegistry.