@@ -0,0 +1,1028 @@
+package %3C%25=packageName%25%3E.web.rest;%0A%0Aimport java.io.IOException;%0Aimport java.nio.charset.Charset;%0A%0Aimport org.springframework.http.MediaType;%0A%0Aimport com.fasterxml.jackson.annotation.JsonInclude;%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0A%0A/**%0A * Utility class for testing purposes.%0A */%0Apublic class TestUtil %7B%0A%0A    /** MediaType for JSON UTF8 */%0A    public static final MediaType APPLICATION_JSON_UTF8 = new MediaType(%0A            MediaType.APPLICATION_JSON.getType(),%0A            MediaType.APPLICATION_JSON.getSubtype(), Charset.forName(%22utf8%22));%0A%0A    /**%0A     * Convert an object to JSON byte array.%0A     * %0A     * @param object%0A     *            the object to convert%0A     * @return the JSON byte array%0A     * @throws IOException%0A     */%0A    public static byte%5B%5D convertObjectToJsonBytes(Object object)%0A            throws IOException %7B%0A        ObjectMapper mapper = new ObjectMapper();%0A        mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);%0A        return mapper.writeValueAsBytes(object);%0A    %7D%0A%0A%7D%0A

Create _TestUtil.java