@Test
	public void testStepWithAssumeRole() throws Exception {
		WorkflowJob job = jenkinsRule.jenkins.createProject(WorkflowJob.class, "testStepWithAssumeRole");
		job.setDefinition(new CpsFlowDefinition(""
				+ "node {\n"
				+ "  withAWS (role: 'myRole', roleAccount: '123456789012') {\n"
				+ "    echo 'It works!'\n"
				+ "  }\n"
				+ "}\n", true)
		);
		WorkflowRun workflowRun = job.scheduleBuild2(0).get();
		jenkinsRule.waitForCompletion(workflowRun);
		jenkinsRule.assertBuildStatus(Result.FAILURE, workflowRun);
		jenkinsRule.assertLogContains("Requesting assume role", workflowRun);
	}
Test the behavior of the {@link WithAWSStep}

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