}
@Test
@SuppressWarnings( { "rawtypes", "unchecked" } )
public void testHasHeaders() {
RequestError error = mock( RequestError.class );
when( error.getRequestUrl() ).thenReturn( "foo" );
MultivaluedMap headers = mock( MultivaluedMap.class );
when( error.getHeaders() ).thenReturn( headers );
RequestException exception = new RequestException( error );
MultivaluedMap<String, Object> actualHeaders = exception.getHeaders();
assertSame( headers, actualHeaders );