diff --git a/src/integrationTest/java/uk/gov/hmcts/reform/professionalapi/util/ProfessionalReferenceDataClient.java b/src/integrationTest/java/uk/gov/hmcts/reform/professionalapi/util/ProfessionalReferenceDataClient.java index fec61452d..1eef97df5 100644 --- a/src/integrationTest/java/uk/gov/hmcts/reform/professionalapi/util/ProfessionalReferenceDataClient.java +++ b/src/integrationTest/java/uk/gov/hmcts/reform/professionalapi/util/ProfessionalReferenceDataClient.java @@ -7,6 +7,7 @@ import com.nimbusds.jwt.JWT; import com.nimbusds.jwt.JWTParser; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.springframework.context.annotation.PropertySource; import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; @@ -931,7 +932,7 @@ private Map getErrorResponseMap(ResponseEntity responseE throws JsonProcessingException { Map errorResponseMap = new HashMap<>(); String body = (String) responseEntity.getBody(); - if (org.apache.commons.lang3.StringUtils.isNotEmpty(body)) { + if (StringUtils.isNotEmpty(body)) { errorResponseMap.put("response_body", objectMapper.readValue( body, ErrorResponse.class)); } else {