@Test
public void getsAllowedMethods() throws Exception {

    MultivaluedMap<String, Object> headers = new MultivaluedHashMap<>();
    headers.put(ALLOW, newArrayList("get,Put", null, "POST"));
    ResponseImpl response = new ResponseImpl(200, "foo", null, headers);
    assertEquals(newHashSet("GET", "PUT", "POST"), response.getAllowedMethods());
}