Source:
<code>public void introspectAccessToken(String opHost, String redirectUrl) throws Exception { DevelopersApi client = Tester.api(); RegisterSiteResponseData setupResponse = RegisterSiteTest.registerSite(client, opHost, redirectUrl); GetClientTokenResponseData tokenResponse = getGetClientTokenResponseData(opHost, client, setupResponse); assertNotNull(tokenResponse); final String accessToken = tokenResponse.getAccessToken(); Tester.notEmpty(accessToken); IntrospectAccessTokenParams introspectParams = new IntrospectAccessTokenParams(); introspectParams.setOxdId(setupResponse.getOxdId()); introspectParams.setAccessToken(accessToken); final String authorization = "Bearer " + accessToken; final IntrospectAccessTokenResponse iaTokenResponse = client.introspectAccessToken(authorization, introspectParams); IntrospectAccessTokenResponseData iatResponseData = iaTokenResponse.getData(); assertNotNull(iatResponseData); assertTrue(iatResponseData.isActive()); final Long issuedAt = iatResponseData.getIat(); assertNotNull(issuedAt); Long expiresAt = iatResponseData.getExp(); assertNotNull(expiresAt); assertTrue(expiresAt >= issuedAt); final Long nbf = iatResponseData.getNbf(); if (nbf != null) { assertTrue(nbf > issuedAt); assertTrue(nbf < expiresAt); <START> } <END> }</code><technical_language>critical I propose assertion section more clear redundant variables declarations, below: java final IntrospectAccessTokenResponse iaTokenResponse = client.introspectAccessToken("Bearer " + accessToken, introspectParams); assertNotNull(iaTokenResponse.getData()); assertTrue(iaTokenResponse.getData().isActive()); assertNotNull(iaTokenResponse.getData().getIat()); assertNotNull(iaTokenResponse.getData().getExp()); assertTrue(iatResponseData.getExp() >= iaTokenResponse.getData().getIat()); final Long nbf = iaTokenResponse.getData().getNbf(); if (nbf != null) { assertTrue(nbf > iaTokenResponse.getData().getIat()); assertTrue(nbf < iaTokenResponse.getData().getExp()); }</technical_language>

Target:
public void introspectAccessToken(String opHost, String redirectUrl) throws Exception { DevelopersApi client = Tester.api(); RegisterSiteResponseData setupResponse = RegisterSiteTest.registerSite(client, opHost, redirectUrl); GetClientTokenResponseData tokenResponse = getGetClientTokenResponseData(opHost, client, setupResponse); assertNotNull(tokenResponse); final String accessToken = tokenResponse.getAccessToken(); Tester.notEmpty(accessToken); IntrospectAccessTokenParams introspectParams = new IntrospectAccessTokenParams(); introspectParams.setOxdId(setupResponse.getOxdId()); introspectParams.setAccessToken(accessToken); final String authorization = "Bearer " + accessToken; final IntrospectAccessTokenResponse iaTokenResponse = client.introspectAccessToken(authorization, introspectParams); assertNotNull(iaTokenResponse.getData()); assertTrue(iaTokenResponse.getData().isActive()); assertNotNull(iaTokenResponse.getData().getIat()); assertNotNull(iaTokenResponse.getData().getExp()); assertTrue(iaTokenResponse.getData().getExp() >= iaTokenResponse.getData().getIat()); final Long nbf = iaTokenResponse.getData().getNbf(); if (nbf != null) { assertTrue(nbf > iaTokenResponse.getData().getIat()); assertTrue(nbf < iaTokenResponse.getData().getExp()); } }