@Test
public void test_fetchIAMRole_successfully() {

    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    String jsoninput= "{\"role\":\"mytestawsrole\"}";
    String jsonGetStr = "{\"bound_ami_id\": [\"ami-fce3c696\"],\"role_tag\": \"\",\"policies\": " +
            "[\"\\\"[prod\", \"dev\\\"]\" ],\"bound_iam_principal_arn\": [],\"bound_iam_role_arn\":" +
            "[ \"arn:aws:iam::8987887:role/test-role\"],\"max_ttl\": 0,\"disallow_reauthentication\": " +
            "false,\"allow_instance_migration\": false}";
    Response getResponse = getMockResponse(HttpStatus.OK, true, jsonGetStr);
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(jsonGetStr);
    when(reqProcessor.process("/auth/aws/iam/roles",jsoninput,token)).thenReturn(getResponse);
    ResponseEntity<String> responseEntity = awsIamAuthService.fetchIAMRole(token, "mytestawsrole");
    assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}