@Test
public void test_readRoleId_failure() {

    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    String role_name = "testapprole01";
    String roleId = "generated-role-id";
    String responseJson = "{\"data\":{ \"role_id\": \"generated-role-id\"}}";
    Response response = getMockResponse(HttpStatus.NOT_FOUND, true, responseJson);
    
    Map<String, Object> responseMap = new HashMap<>();
    Map<String,Object> roleIdDataMap = new HashMap<>();
    roleIdDataMap.put("role_id", roleId);
    responseMap.put("data", roleIdDataMap);
    when(ControllerUtil.parseJson("{\"data\":{ \"role_id\": \"generated-role-id\"}}")).thenReturn(responseMap);
    
    when(reqProcessor.process("/auth/approle/role/readRoleID", "{\"role_name\":\""+role_name+"\"}",token)).thenReturn(response);
    String actualRoleId = appRoleService.readRoleId(token, role_name);
    assertEquals(null, actualRoleId);
}