AuthorizationField extends HeaderField { @Override public String value() { return method + " " + rawCredentials; } AuthorizationField(Method method, String rawCredentials); static AuthorizationField parse(String s); @Override T accept(HeaderFieldVisitor<T> visitor); WWWAuthenticateField.Method method(); String rawCredentials(); String credentialsString(); BasicCredentials basicCredentials(); @Override String name(); @Override String value(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void accuratelyImplementsTheContractForTheValuesMethod(){ AuthorizationField field = new AuthorizationField(WWWAuthenticateField.Method.Basic, "fdsfds"); String value = field.value(); Assert.assertEquals("Basic fdsfds", value); }