@Test
 public void allow() {
   EnumSet<HttpMethod> methods = EnumSet.of(HttpMethod.GET, HttpMethod.POST);
   headers.setAllow(methods);
   assertEquals("Invalid Allow header", methods, headers.getAllow());
   assertEquals("Invalid Allow header", "GET,POST", headers.getFirst("Allow"));
 }
  @Test
  public void getAllowEmptySet() {
    headers.setAllow(Collections.<HttpMethod>emptySet());

    assertThat(headers.getAllow(), Matchers.emptyCollectionOf(HttpMethod.class));
  }