### Question:
OAuth2Session { OAuth2Session stateAuthorizing(final String clientRegistrationName, final String clientEndpoint, final String authorizationRequestNonce, final List<String> requestedScopes) { return new OAuth2Session(time, clientRegistrationName, clientEndpoint, authorizationRequestNonce, requestedScopes, accessTokenResponse, idToken, expiresAt); } private  OAuth2Session(final TimeService time, final String clientRegistrationName,
            final String clientEndpoint, final String authorizationRequestNonce,
            final List<String> scopes, final JsonValue accessTokenResponse,
            final SignedJwt idToken, final Long expiresAt);   }### Answer:
@Test public void testStateAuthorizing() throws Exception { OAuth2Session session = OAuth2Session.stateNew(time) .stateAuthorizing("clientRegistration", "endpoint", "nonce", asList("scope1", "scope2")); testStateAuthorizing0(session); session = OAuth2Session.fromJson(time, session.toJson()); testStateAuthorizing0(session); }