@Test
public void test_readAppRoleRoleId_failure() {

    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    String responseJson = "{\"error\":[\"Internal Server Error\"]}";
    Response response =getMockResponse(HttpStatus.INTERNAL_SERVER_ERROR, true, responseJson);
    String appRoleName = "approle1";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(responseJson);
    
    when(reqProcessor.process("/auth/approle/role/readRoleID","{\"role_name\":\""+appRoleName+"\"}",token)).thenReturn(response);
    
    ResponseEntity<String> responseEntityActual = appRoleService.readAppRoleRoleId(token, appRoleName);
    assertEquals(HttpStatus.INTERNAL_SERVER_ERROR, responseEntityActual.getStatusCode());
    assertEquals(responseEntityExpected, responseEntityActual);
}