### Question:
HSAdminServer extends AbstractService implements HSAdminProtocol { @Override public void refreshLoadedJobCache() throws IOException { UserGroupInformation user = checkAcls("refreshLoadedJobCache"); try { jobHistoryService.refreshLoadedJobCache(); } catch (UnsupportedOperationException e) { HSAuditLogger.logFailure(user.getShortUserName(), "refreshLoadedJobCache", adminAcl.toString(), HISTORY_ADMIN_SERVER, e.getMessage()); throw e; } HSAuditLogger.logSuccess(user.getShortUserName(), "refreshLoadedJobCache", HISTORY_ADMIN_SERVER); } HSAdminServer(AggregatedLogDeletionService aggLogDelService,
      JobHistory jobHistoryService); @Override void serviceInit(Configuration conf); @Override String[] getGroupsForUser(String user); @Override void refreshUserToGroupsMappings(); @Override void refreshSuperUserGroupsConfiguration(); @Override void refreshAdminAcls(); @Override void refreshLoadedJobCache(); @Override void refreshLogRetentionSettings(); @Override void refreshJobRetentionSettings();  }### Answer:
@Test public void testRefreshLoadedJobCache() throws Exception { String[] args = new String[1]; args[0] = "-refreshLoadedJobCache"; hsAdminClient.run(args); verify(jobHistoryService).refreshLoadedJobCache(); }