@Test
public void getsLocation() throws Exception {

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