Unit testing overridden methods which call super()
问题 I'm trying to figure out the best way of writing a unit test for an overridden method which calls super() as the last step. Basically, I want to massage parameters before they're used in the base class. Here's an example of a method: @Override public JobExecution run(Job job, JobParameters passedParams) throws JobExecutionAlreadyRunningException, JobRestartException { JobParameters launchParameters; if(passedParams.isEmpty()) { launchParameters = jobParameterSetter.getJobParameters(); } else