@Test
public void shouldSubmitToJobClient() throws ProgramInvocationException, IOException
{

	when(jobSubmissionResultMock.getReturnCode()).thenReturn(ReturnCode.SUCCESS);
	
	Client out = new Client(configMock);
	out.run(program.getPlanWithJars(), -1, false);
	program.deleteExtractedLibraries();
	
	verify(this.compilerMock, times(1)).compile(planMock);
	verify(this.generatorMock, times(1)).compileJobGraph(optimizedPlanMock);
	verify(this.jobClientMock, times(1)).submitJob();
}