@Test public void testToBearerHeader() { AuthToken token = new AuthToken("token_value"); assert "Bearer token_value".equals(token.toHeaderString()); }
public String toHeaderString() { return "Bearer " + value; }
AuthToken { public String toHeaderString() { return "Bearer " + value; } }
AuthToken { public String toHeaderString() { return "Bearer " + value; } AuthToken(String value); }
AuthToken { public String toHeaderString() { return "Bearer " + value; } AuthToken(String value); String getValue(); Date getReceivedAt(); boolean isExpired(); String toHeaderString(); }
AuthToken { public String toHeaderString() { return "Bearer " + value; } AuthToken(String value); String getValue(); Date getReceivedAt(); boolean isExpired(); String toHeaderString();  }