@Test(expected = TVaultValidationException.class)
public void test_createIAMRole_failure_400() throws TVaultValidationException{

    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    AWSIAMRole awsiamRole = new AWSIAMRole();
    awsiamRole.setAuth_type("iam");
    String[] arns = {"arn:aws:iam::123456789012:user/tst"};
    awsiamRole.setBound_iam_principal_arn(arns);
    String[] policies = {"default"};
    awsiamRole.setPolicies(policies);
    awsiamRole.setResolve_aws_unique_ids(true);
    awsiamRole.setRole("string");
    when(ControllerUtil.areAWSIAMRoleInputsValid(awsiamRole)).thenReturn(false);
    UserDetails userDetails = getMockUser(true);
    ResponseEntity<String> responseEntity = awsIamAuthService.createIAMRole(awsiamRole, token, userDetails);
}