@Test(expected=ProgramInvocationException.class)
public void shouldThrowException() throws Exception
{

	when(jobSubmissionResultMock.getReturnCode()).thenReturn(ReturnCode.ERROR);
	
	Client out = new Client(configMock);
	out.run(program.getPlanWithJars(), -1, false);
	program.deleteExtractedLibraries();
	
	verify(this.jobClientMock).submitJob();
}