update mock object