Verify headers in RestClientTest.
Remove deprecated classes.