RESTTEMPLATE Autorización básica
restTemplate.exchange (uri, HttpMethod.POST, new HttpEntity<T>(createHeaders(username, password)), clazz);
Poised Pheasant
restTemplate.exchange (uri, HttpMethod.POST, new HttpEntity<T>(createHeaders(username, password)), clazz);