private void _testGetActionByExternalId(String actionId, String jobId, CoordinatorAction.Status status, int pending, String extId, String slaXml) throws Exception {
try {
JPAService jpaService = Services.get().get(JPAService.class);
assertNotNull(jpaService);
CoordActionGetForExternalIdJPAExecutor actionGetCmd = new CoordActionGetForExternalIdJPAExecutor(extId);
CoordinatorActionBean action = jpaService.execute(actionGetCmd);
assertNotNull(action);
assertEquals(actionId, action.getId());
assertEquals(status, action.getStatus());
assertEquals(pending, action.getPending());
assertEquals(extId, action.getExternalId());
assertEquals(slaXml, action.getSlaXml());
}
catch (Exception ex) {
ex.printStackTrace();
fail("Unable to GET a record for COORD Action By External ID. actionId =" + actionId + " extID =" + extId);
}