StandardResponse { public static StandardResponse successResponse(String message) { return new StandardResponse(systemUTC(), true, message); } @JsonCreator  StandardResponse(
      @JsonProperty("timestamp") long timestamp,
      @JsonProperty("success") boolean success,
      @JsonProperty("message") String message); @VisibleForTesting  StandardResponse(Clock clock, boolean success, String message); static StandardResponse successResponse(String message); static StandardResponse failureResponse(String message);  }
@Test public void success() { StandardResponse standardResponse = StandardResponse.successResponse(message1); assertThat(standardResponse.isSuccess(), is(success)); assertThat(standardResponse.getMessage(), is(message1)); }