add test method testObtainPostHook