package ru.yandex.qatools.allure.data.utils;

import com.fasterxml.jackson.databind.AnnotationIntrospector;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.type.TypeFactory;
import com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector;
import ru.yandex.qatools.allure.data.ReportGenerationException;

import java.io.*;

/**
 * @author Dmitry Baev charlie@yandex-team.ru
 *         Date: 31.10.13
 */
public final class AllureReportUtils {

    private AllureReportUtils() {
    }

    public static void serialize(final File directory, String name, Object obj) {
        try {
            ObjectMapper mapper = new ObjectMapper();
            AnnotationIntrospector ai = new JaxbAnnotationIntrospector(TypeFactory.defaultInstance());
            mapper.getSerializationConfig().with(ai);

            mapper.writerWithDefaultPrettyPrinter().writeValue(new File(directory, name), obj);
        } catch (IOException e) {
            throw new ReportGenerationException(e);
        }
    }
}

@@ -360,16 +360,58 @@
 va.io.*;
+%0Aimport java.nio.charset.StandardCharsets;
 %0A%0A/**%0A *
@@ -751,17 +751,34 @@
 pector a
-i
+nnotatoinInspector
  = new J
@@ -889,12 +889,186 @@
 th(a
-i);%0A
+nnotatoinInspector);%0A            OutputStreamWriter writer = new OutputStreamWriter(%0A                    new FileOutputStream(new File(directory, name)), StandardCharsets.UTF_8);
 %0A   
@@ -1131,33 +1131,14 @@
 lue(
-new File(directory, name)
+writer
 , ob

Use UTF-8 while write testcases json