public LibResponse deleteBook(Long id) {
        LibResponse resp = null;
        AuditDto audit = null;
        try {
            Call<LibResponse> callLibResponse = libraryClient.deleteBook(id);
            Response<LibResponse> libResponse = callLibResponse.execute();

            if (libResponse.isSuccessful()) {
                resp = libResponse.body();
                audit = auditMapper.populateAuditLogForDelete(id, resp);
            } else {
                log.error("Error calling library client: {}", libResponse.errorBody());
                if (Objects.nonNull(libResponse.errorBody())) {
                    resp = new ObjectMapper().readValue(libResponse.errorBody().string(), LibResponse.class);
                    audit = auditMapper.populateAuditLogForException(
                            String.valueOf(id), HttpMethod.POST, libResponse.errorBody().string());
                }
            }
        } catch (Exception ex) {
            log.error("Error handling retrofit call for deleteBook", ex);
            resp = new LibResponse(Constants.ERROR, "Failed");
        }


        if (Objects.nonNull(audit)) {
            AuditLog savedObj = auditRepository.save(libraryMapper.auditDtoToAuditLog(audit));
            log.info("Saved into audit successfully : {}", savedObj);
        }
        return resp;
    }
@Test
    @DisplayName("Cannot delete a book")
    public void deleteBookRequestTest() throws Exception {
        LibResponse response = new LibResponse(Status.ERROR.toString(), "Could not delete book for id : 1000");
        ResponseBody respBody = ResponseBody.create(MediaType.parse("application/json"),
                new ObjectMapper().writeValueAsString(response));
        Response<LibResponse> respLib = Response.error(500, respBody);
        when(libraryClient.deleteBook(Long.valueOf("1000"))).thenReturn(Calls.response(respLib));
        doReturn(null).when(auditRepository).save(any());
        LibResponse libResponse = libraryAuditService.deleteBook(Long.valueOf("1000"));
        assertAll(
                () -> assertNotNull(libResponse),
                () -> assertTrue(libResponse.getResponseCode().equals("Error"))
        );

    }