func TestHandleVersionUpdate(t *testing.T) { … } type fakeAPIServiceRegistration … func (a *fakeAPIServiceRegistration) AddAPIServiceToSync(in *apiregistration.APIService) { … } func (a *fakeAPIServiceRegistration) RemoveAPIServiceToSync(name string) { … }