JobExecutionException e = mock(JobExecutionException.class);
String longstr = RandomStringUtils.randomAlphanumeric(300);
when(e.getMessage()).thenReturn(longstr);
JobDataMap map = new JobDataMap();
Principal principal = mock(Principal.class);
when(principal.getPrincipalName()).thenReturn("test-admin");
map.put(PinsetterJobListener.PRINCIPAL_KEY, principal);
map.put(JobStatus.TARGET_TYPE, JobStatus.TargetType.OWNER);
map.put(JobStatus.TARGET_ID, "10");
JobDetail detail = mock(JobDetail.class);