I have the following test on my Go project :
func TestGetUsersOk(t *testing.T) { var mockDBProvider = &DBProviderMock{} mockDBProvider.On("Qu