Buggy code:
public class EPPRgpDomainTst extends TestCase { private static EPPApplicationSingle app = EPPApplicationSingle . getInstance ( ) ; private static String configFileName = "epp.config" ; private static final Logger cat = Logger . getLogger ( EPPRgpDomainTst . class . getName ( ) , EPPCatFactory . getInstance ( ) . getFactory ( ) ) ; private EPPDomain domain = null ; private EPPSession session = null ; private EPPClientCon connection = null ; private int iteration = 0 ; private Random rd = new Random ( System . currentTimeMillis ( ) ) ; public EPPRgpDomainTst ( String name ) { } public void testDomain ( ) { } public void domainInfo ( ) { } public void domainRestoreRequest ( ) { } public void domainRestoreReport ( ) { } public void domainPoll ( ) { } private void initSession ( ) { } private void endSession ( ) { } protected void setUp ( ) { } protected void tearDown ( ) { } public static Test suite ( ) { } public void handleException ( Exception aException ) { } public static void main ( String [ ] args ) { } public String makeDomainName ( ) { } public String makeIP ( ) { } public String makeHostName ( String newDomainName ) { } public String makeContactName ( ) { } private void printStart ( String aTest ) { } private void printEnd ( String aTest ) { } private void printMsg ( String aMsg ) { } private void printError ( String aMsg ) { } private void printRgpStatuses ( EPPDomainInfoResp aResp ) { if ( aResp . hasExtension ( EPPRgpExtInfData . class ) ) { <START_BUG> EPPRgpExtInfData theRgpInf = ( ( EPPRgpExtInfData ) ( aResp . getExtension ( EPPRgpExtInfData . class ) ) ) ; <END_BUG> List rgpStatuses = theRgpInf . getStatuses ( ) ; System . out . println ( ( "domainInfo:<seq2seq4repair_space>rgpStatuses.size<seq2seq4repair_space>=<seq2seq4repair_space>" + ( rgpStatuses . size ( ) ) ) ) ; for ( int i = 0 ; i < ( rgpStatuses . size ( ) ) ; i ++ ) { EPPRgpExtStatus rgpStatus = ( ( EPPRgpExtStatus ) ( rgpStatuses . get ( i ) ) ) ; if ( ( ( ( rgpStatus . getStatus ( ) . equals ( ADD_PERIOD ) ) || ( rgpStatus . getStatus ( ) . equals ( AUTO_RENEW_PERIOD ) ) ) || ( rgpStatus . getStatus ( ) . equals ( RENEW_PERIOD ) ) ) || ( rgpStatus . getStatus ( ) . equals ( TRANSFER_PERIOD ) ) ) { System . out . println ( ( "domainInfo:<seq2seq4repair_space>rgp<seq2seq4repair_space>grace<seq2seq4repair_space>period<seq2seq4repair_space>status<seq2seq4repair_space>" + ( rgpStatus . getStatus ( ) ) ) ) ; System . out . println ( ( "domainInfo:<seq2seq4repair_space>rgp<seq2seq4repair_space>grace<seq2seq4repair_space>period<seq2seq4repair_space>end<seq2seq4repair_space>date<seq2seq4repair_space>=<seq2seq4repair_space>" + ( EPPUtil . decodeTimeInstant ( rgpStatus . getMessage ( ) . substring ( 8 ) ) ) ) ) ; } else if ( ( ( rgpStatus . getStatus ( ) . equals ( REDEMPTION_PERIOD ) ) || ( rgpStatus . getStatus ( ) . equals ( PENDING_RESTORE ) ) ) || ( rgpStatus . getStatus ( ) . equals ( PENDING_DELETE ) ) ) { System . out . println ( ( "domainInfo:<seq2seq4repair_space>rgp<seq2seq4repair_space>pending<seq2seq4repair_space>period<seq2seq4repair_space>status<seq2seq4repair_space>" + ( rgpStatus . getStatus ( ) ) ) ) ; } } } } }

Fix:
EPPRgpExtInfData theRgpInf = ( ( EPPRgpExtInfData ) ( aResp . getExtension ( EPPRgpExtInfData . class ) . orElse ( null ) ) ) ;