@Test
public void test_createSecretId_failure() {

    String responseJson = "{\"error\":[\"Internal Server Error\"]}";
    Response response =getMockResponse(HttpStatus.INTERNAL_SERVER_ERROR, true, responseJson);
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(responseJson);
    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.INTERNAL_SERVER_ERROR, responseEntityActual.getStatusCode());
    assertEquals(responseEntityExpected, responseEntityActual);
}