Step 4: Extending the context API impl

Create a new impl that extends the existing context API impl and implements the extension interface.
For each method, Guidewire recommends writing initial implementations that simply throw an UnsupportedOperationException. When the initial work is complete, you can test the structure by running a test and verifying that this type of exception is thrown. Later, you can replace each implementation with actual code.
The following text is an example of a new AdminContextImpl_Ext impl.
package gw.cucumber.customer.context.impl.smoketest
// additional uses statements may be needed
uses gw.cucumber.context.impl.smoketest.common.AdminContextImpl
uses gw.cucumber.customer.context.api.AdminContext_Ext
class AdminContextImpl_Ext extends AdminContextImpl implements AdminContext_Ext {
override function getTeamMember(userName : String) {
throw new UnsupportedOperationException("Not yet implemented")
}
override function setUserEmailAddress(emailAddress : String) {
throw new UnsupportedOperationException("Not yet implemented")
}
override function verifyEmailAddress(emailAddress : String) {
throw new UnsupportedOperationException("Not yet implemented")
}
}