### Question:
PassTicketService { public boolean isUsingSafImplementation() { ClassOrDefaultProxyUtils.ClassOrDefaultProxyState stateInterface = (ClassOrDefaultProxyUtils.ClassOrDefaultProxyState) irrPassTicket; return stateInterface.isUsingBaseImplementation(); } PassTicketService(); void evaluate(String userId, String applId, String passTicket); String generate(String userId, String applId); boolean isUsingSafImplementation();  }### Answer:
@Test public void testIsUsingSafImplementation() { IRRPassTicket irrPassTicket = (IRRPassTicket) ReflectionTestUtils.getField(passTicketService, "irrPassTicket"); ClassOrDefaultProxyUtils.ClassOrDefaultProxyState stateInterface = (ClassOrDefaultProxyUtils.ClassOrDefaultProxyState) irrPassTicket; assertEquals(stateInterface.isUsingBaseImplementation(), passTicketService.isUsingSafImplementation()); }