@Test
public void testGetJobLauncherModel() {

    final String jobName = "testJob";
    final String applicationInstanceId = "testApp";
    final String name1 = "longValue";
    final String name2 = "stringValue";
    final JobParameter jobParameter1 = ApiTestHelper.createJobParameter(1L, ParameterType.LONG);
    final JobParameter jobParameter2 = ApiTestHelper.createJobParameter("test", ParameterType.STRING);
    final Map<String, JobParameter> jobParameterMap = new HashMap<>();
    ApiTestHelper.addJobParameter(jobParameterMap, name1, jobParameter1);
    ApiTestHelper.addJobParameter(jobParameterMap, name2, jobParameter2);
    final JobParameters jobParameters = ApiTestHelper.createJobParameters(jobParameterMap);
    final LightminClientApplication applicationInstance = new LightminClientApplication();
    when(this.registrationBean.findById(applicationInstanceId)).thenReturn(applicationInstance);
    when(this.jobServerService.getLastJobParameters(jobName, applicationInstance)).thenReturn(jobParameters);
    final JobLauncherModel result = this.jobLauncherFeService.getJobLauncherModel(jobName, applicationInstanceId);
    BDDAssertions.then(result).isNotNull();
    BDDAssertions.then(result.getJobParameters()).isEqualTo(ApiParameterParser.parseParametersToString(jobParameters));
    BDDAssertions.then(result.getApplicationInstanceId()).isEqualTo(applicationInstanceId);
    BDDAssertions.then(result.getJobName()).isEqualTo(jobName);
}