@Test
public void test_deleteIAMRole_failure_500() {

    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    Response response = getMockResponse(HttpStatus.INTERNAL_SERVER_ERROR, false, "{\"errors\":[\"Internal Server Error\"]}");
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body("{\"errors\":[\"Internal Server Error\"]}");
    when(reqProcessor.process("/auth/aws/iam/roles/delete","{\"role\":\"mytestawsrole\"}",token)).thenReturn(response);
    ResponseEntity<String> responseEntity = awsIamAuthService.deleteIAMRole(token, "mytestawsrole");
    assertEquals(HttpStatus.INTERNAL_SERVER_ERROR, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}