@Test
public void parsesLocationHeader() throws Exception {

    MultivaluedMap<String, Object> headers = new MultivaluedHashMap<>();
    headers.putSingle(LOCATION, "http://localhost:8080/bar");
    ResponseImpl response = new ResponseImpl(200, "foo", null, headers);
    assertEquals(new URI("http://localhost:8080/bar"), response.getLocation());
}