@Test
	public void testStepWithFolderCredentials() throws Exception {

		String folderCredentialsId = "folders-aws-creds";

		// Create a folder with credentials in its store
		Folder folder = jenkinsRule.jenkins.createProject(Folder.class, "folder" + jenkinsRule.jenkins.getItems().size());
		CredentialsStore folderStore = this.getFolderStore(folder);
		StandardUsernamePasswordCredentials inFolderCredentials = new UsernamePasswordCredentialsImpl(CredentialsScope.GLOBAL,
																									  folderCredentialsId, "test-folder-creds", "folder-aws-access-key-id", "folder-aws-secret-access-key");
		folderStore.addCredentials(Domain.global(), inFolderCredentials);
		SystemCredentialsProvider.getInstance().save();

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

		WorkflowJob job = folder.createProject(WorkflowJob.class, "testStepWithFolderCredentials");
		job.setDefinition(new CpsFlowDefinition(""
														+ "node {\n"
														+ "  withAWS (credentials: '" + folderCredentialsId + "') {\n"
														+ "    echo 'It works!'\n"
														+ "  }\n"
														+ "}\n", true)
		);
		jenkinsRule.assertBuildStatusSuccess(job.scheduleBuild2(0));

	}
Test the behavior of the {@link WithAWSStep}

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