AllowField extends HeaderField { @Override public String name() { return "Allow"; } AllowField(Method... allowed); @Override T accept(HeaderFieldVisitor<T> visitor); @Override String name(); @Override String value();  }
@Test public void testName() { AllowField allowField = new AllowField(); Assert.assertEquals("Allow", allowField.name()); }