agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/submission/AbstractJobSubmissionTest.java
/**
	 * Verfies the variables were resolved in the template and the callback urls resolved to the 
	 * proper tenant paths.
	 * 
	 * @param job the job for which the template will be resolved
	 * @param message the assertion message upon failure
	 * @param shouldThrowException true if an exception should be thrown, false otherwise
	 */
Verfies the variables were resolved in the template and the callback urls resolved to the
proper tenant paths.

@param job the job for which the template will be resolved
@param message the assertion message upon failure
@param shouldThrowException true if an exception should be thrown, false otherwise
Verfies the variables were resolved in the template and the callback urls resolved to the proper tenant paths . @param job the job for which the template will be resolved @param message the assertion message upon failure @param shouldThrowException true if an exception should be thrown false otherwise
protected void genericProcessApplicationTemplate(Job job, String expectedString, String message, boolean shouldThrowException)
	throws Exception 
	{
		JobLauncher launcher = new JobLauncherFactory().getInstance(job);
		String applicationWrapperContent = launcher.processApplicationWrapperTemplate();
        Assert.assertTrue(applicationWrapperContent.contains(expectedString), message);
        Assert.assertTrue(wrapperTemplateContentCaptor.getValue().contains(expectedString), message);
	}
protected void genericProcessApplicationTemplate ( Job job , String expectedString , String message , boolean shouldThrowException ) throws Exception { JobLauncher launcher = new JobLauncherFactory ( ) . getInstance ( job ) ; String applicationWrapperContent = launcher . processApplicationWrapperTemplate ( ) ; Assert . assertTrue ( applicationWrapperContent . contains ( expectedString ) , message ) ; }
Verfies the variables were resolved in the template and the callback urls resolved to the
 proper tenant paths.
Verfies the variables were resolved in the template and the callback urls resolved to the proper tenant paths .
//        ArgumentCaptor<String> wrapperTemplateContentCaptor = ArgumentCaptor.forClass(String.class); //        verify(launcher).writeWrapperTemplateToRemoteJobDir(eq(anyString()), wrapperTemplateContentCaptor.capture()); // //        Assert.assertTrue(wrapperTemplateContentCaptor.getValue().contains(expectedString), message);