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