CDITCK-395 Fix WithAnnotationsTest assertion