String postJsonString = IOUtils.toString(getClass().getResourceAsStream(path));
return jsonMapper.toJavaObject(postJsonString, clazz);
}
private <T> List<T> loadListFromJSON(String path, Class<T> clazz) throws IOException{
DefaultJsonMapper jsonMapper = new DefaultJsonMapper();
String postJsonString = IOUtils.toString(getClass().getResourceAsStream(path));
return jsonMapper.toJavaList(postJsonString, clazz);
}