@Override
  public SecurityService getSecurityService() {
    return new TestSecurityService();
  }
Defines the API in which {@link #exceptionToThrow} and {@link #exceptionToReturn} will work.
ambry-frontend/src/test/java/com/github/ambry/frontend/FrontendRestRequestServiceTest.java