I have a json file SenderTest.json in my src/test/resources package of my project. I think my approach of deserializing the json object to java object is right.
JsonObject json = new JsonObject();
String jsonStrng = json.toString();
ObjectMapper mapper = new ObjectMapper();
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
Animal animal = mapper.readValue(jsonStrng, Animal.class);
but I am struggling to understand how to get the SenderTest.json from recources package into this JsonObject