You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: defaults_test.go
    path of file: ./repos/kubernetes/pkg/apis/admissionregistration/v1
    
    the code of the file until where you have to start completion: /*
Copyright 2019 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    
    
func TestDefaultAdmissionPolicy(t *testing.T) {
	fail := v1.Fail
	equivalent := v1.Equivalent
	allScopes := v1.AllScopes

	tests := []struct {
		name     string
		original runtime.Object
		expected runtime.Object
	}{
		{
			name: "ValidatingAdmissionPolicy",
			original: &v1.ValidatingAdmissionPolicy{
				Spec: v1.ValidatingAdmissionPolicySpec{
					MatchConstraints: &v1.MatchResources{},
				},
			},
			expected: &v1.ValidatingAdmissionPolicy{
				Spec: v1.ValidatingAdmissionPolicySpec{
					MatchConstraints: &v1.MatchResources{
						MatchPolicy:       &equivalent,
						NamespaceSelector: &metav1.LabelSelector{},
						ObjectSelector:    &metav1.LabelSelector{},
					},
					FailurePolicy: &fail,
				},
			},
		},
		{
			name: "ValidatingAdmissionPolicyBinding",
			original: &v1.ValidatingAdmissionPolicyBinding{
				Spec: v1.ValidatingAdmissionPolicyBindingSpec{
					MatchResources: &v1.MatchResources{},
				},
			},
			expected: &v1.ValidatingAdmissionPolicyBinding{
				Spec: v1.ValidatingAdmissionPolicyBindingSpec{
					MatchResources: &v1.MatchResources{
						MatchPolicy:       &equivalent,
						NamespaceSelector: &metav1.LabelSelector{},
						ObjectSelector:    &metav1.LabelSelector{},
					},
				},
			},
		},
		{
			name: "scope=*",
			original: &v1.ValidatingAdmissionPolicy{
				Spec: v1.ValidatingAdmissionPolicySpec{
					MatchConstraints: &v1.MatchResources{
						ResourceRules: []v1.NamedRuleWithOperations{{}},
					},
				},
			},
			expected: &v1.ValidatingAdmissionPolicy{
				Spec: v1.ValidatingAdmissionPolicySpec{
					MatchConstraints: &v1.MatchResources{
						MatchPolicy:       &equivalent,
						NamespaceSelector: &metav1.LabelSelector{},
						ObjectSelector:    &metav1.LabelSelector{},
						ResourceRules: []v1.NamedRuleWithOperations{
							{
								RuleWithOperations: v1.RuleWithOperations{
									Rule: v1.Rule{
										Scope: &allScopes, // defaulted
									},
								},
							},
						},
					},
					FailurePolicy: &fail,
				},
			},
		},
	}

	for _, test := range tests {
		t.Run(test.name, func(t *testing.T) {
			original := test.original
			expected := test.expected
			legacyscheme.Scheme.Default(original)
			if !apiequality.Semantic.DeepEqual(original, expected) {
				t.Error(cmp.Diff(expected, original))
			}
		})
	}
}