Changed to use TestRestTemplate class.