@Test
public void test_createSecretId_successfully() {

    String responseJson = "{\"data\":{ \"secret_id\": \"5973a6de-38c1-0402-46a3-6d76e38b773c\", \"secret_id_accessor\": \"cda12712-9845-c271-aeb1-833681fac295\"}}";
    Response response =getMockResponse(HttpStatus.NO_CONTENT, true, responseJson);
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body("{\"messages\":[\"Secret ID created for AppRole\"]}");
    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    AppRoleSecretData appRoleSecretData = new AppRoleSecretData("approle1", new SecretData("dev", "appl"));
    String jsonStr = "{\"role_name\":\"approle1\",\"data\":{\"env\":\"dev\",\"appname\":\"appl\"}}";
    
    when(reqProcessor.process("/auth/approle/secretid/create", jsonStr,token)).thenReturn(response);
    when(ControllerUtil.convertAppRoleSecretIdToLowerCase(Mockito.any())).thenReturn(jsonStr);
    when(JSONUtil.getJSON(appRoleSecretData)).thenReturn(jsonStr);
    
    ResponseEntity<String> responseEntityActual = appRoleService.createsecretId(token, appRoleSecretData);
    assertEquals(HttpStatus.OK, responseEntityActual.getStatusCode());
    assertEquals(responseEntityExpected, responseEntityActual);
}