AuthorizationToken { public String asBearerHeader() { return "Bearer " + value; } @VisibleForTesting  AuthorizationToken(@JsonProperty("token") String value); String asBearerHeader(); @Override final boolean equals(Object o); @Override final int hashCode();  }
@Test void asBearerHeaderShouldReturnBearerWithASpaceAtBeginning() { AuthorizationToken token = new AuthorizationToken("token-suffix"); assertThat(token.asBearerHeader()) .isEqualTo("Bearer token-suffix"); }