@Test
	public void testStepWithNotFoundGlobalCredentials() throws Exception {

		String globalBaseCreds = "something-random";

		List<String> credentialIds = new ArrayList<>();
		credentialIds.add(globalBaseCreds);

		WorkflowJob job = jenkinsRule.jenkins.createProject(WorkflowJob.class, "testStepWithNotFoundGlobalCredentials");
		job.setDefinition(new CpsFlowDefinition(""
				+ "node {\n"
				+ "  withAWS (credentials: '" + globalBaseCreds + "') {\n"
				+ "    echo 'It works!'\n"
				+ "  }\n"
				+ "}\n", true)
		);

		jenkinsRule.assertBuildStatus(Result.FAILURE, job.scheduleBuild2(0));
	}
Test the behavior of the {@link WithAWSStep}

@author Allan Burdajewicz
src/test/java/de/taimos/pipeline/aws/WithAWSStepTest.java