Integration Testing With Spring Cloud Contract

I am just finishing section “Add Identity with Okta” and that all works fine. However, I started noticing that if I issue ./mvnw test, it runs fine. But if I issue ./mvnw clean install, I am getting error

[ERROR] ContractVerifierTest.validate_find_hat_by_id:38 » IllegalState Parsed JSON [{"...

Which is really strange since I can retrieve JSon for all 3 hats (first 2 as 200, and 3rd as 404). So, it looks like everything is ok but ./mvnw clean install returns above error?