'Register the provided stub for the specified service.
Args:
service: string
stub: stub'

def RegisterStub(self, service, stub):

    assert (not self.__stub_map.has_key(service)), repr(service)
    self.ReplaceStub(service, stub)
