tests for hasRequestBody
rename Endpoint to Resource for clarify the intent