28363f8 Implement getResponseType() and corresponding test cases.