### Question:
TokenGenerationServiceInvocationState { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("TokenGenerationServiceInvocationState instance:").append('\n'); sb.append('\t').append("TokenType: ").append(tokenType.name()).append('\n'); sb.append('\t').append("STS instance id: ").append(stsInstanceId).append('\n'); sb.append('\t').append("sts type ").append(stsType).append('\n'); sb.append('\t').append("realm ").append(realm).append('\n'); sb.append('\t').append("saml2TokenGenerationState ").append(saml2TokenGenerationState).append('\n'); sb.append('\t').append("openIdConnectTokenGenerationState ").append(openIdConnectTokenGenerationState).append('\n'); return sb.toString(); } private  TokenGenerationServiceInvocationState(TokenGenerationServiceInvocationStateBuilder builder); static TokenGenerationServiceInvocationStateBuilder builder(); String getSsoTokenString(); TokenType getTokenType(); String getStsInstanceId(); AMSTSConstants.STSType getStsType(); String getRealm(); SAML2TokenGenerationState getSaml2TokenGenerationState(); OpenIdConnectTokenGenerationState getOpenIdConnectTokenGenerationState(); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); JsonValue toJson(); static TokenGenerationServiceInvocationState fromJson(JsonValue json);  }### Answer:
@Test public void testToString() throws Exception { buildInvocationState(TokenType.SAML2).toString(); buildInvocationState(TokenType.OPENIDCONNECT).toString(); }