protected TestModelBase(Class<?> clazz) throws Exception { super(); this.clazz = clazz; context = new JAXBContextResolver().getContext(clazz); mapper = new JacksonJaxbJsonProvider().locateMapper(clazz, MediaType.APPLICATION_JSON_TYPE); }