content: /*
   * This file was automatically generated by EvoSuite
   */
  
  package com.lts.application.data.plugable;
  
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.evosuite.junit.EvoSuiteRunner;
  import static org.junit.Assert.*;
  import com.lts.application.ApplicationException;
  import com.lts.application.ApplicationRepository;
  import com.lts.application.data.plugable.XmlStorageMethod;
  import com.lts.application.repository.DirectoryRepository;
  import java.io.ByteArrayOutputStream;
  import java.io.File;
  import java.io.FileDescriptor;
  import java.io.FileInputStream;
  import java.io.InputStream;
  import java.io.OutputStream;
  import org.junit.BeforeClass;
  
  @RunWith(EvoSuiteRunner.class)
  public class XmlStorageMethodEvoSuiteTest {
  
    @BeforeClass 
    public static void initEvoSuiteFramework(){ 
      org.evosuite.Properties.REPLACE_CALLS = true; 
    } 
  
  
    @Test
    public void test0()  throws Throwable  {
        XmlStorageMethod xmlStorageMethod0 = new XmlStorageMethod();
        File file0 = new File("=<\t^CQDC");
        DirectoryRepository directoryRepository0 = new DirectoryRepository(file0, file0);
        Object object0 = xmlStorageMethod0.readData((ApplicationRepository) directoryRepository0, "=<\t^CQDC");
        assertNull(object0);
    }
  
    @Test
    public void test1()  throws Throwable  {
        XmlStorageMethod xmlStorageMethod0 = new XmlStorageMethod();
        // Undeclared exception!
        try {
          xmlStorageMethod0.writeData((ApplicationRepository) null, (Object) "", "");
          fail("Expecting exception: NullPointerException");
        } catch(NullPointerException e) {
        }
    }
  
    @Test
    public void test2()  throws Throwable  {
        XmlStorageMethod xmlStorageMethod0 = new XmlStorageMethod();
        // Undeclared exception!
        try {
          xmlStorageMethod0.readData((ApplicationRepository) null, "Error trying to extrat out archive to temporary location.  ArcSive: ");
          fail("Expecting exception: NullPointerException");
        } catch(NullPointerException e) {
        }
    }
  
    @Test
    public void test3()  throws Throwable  {
        XmlStorageMethod xmlStorageMethod0 = new XmlStorageMethod();
        FileDescriptor fileDescriptor0 = FileDescriptor.out;
        FileInputStream fileInputStream0 = new FileInputStream(fileDescriptor0);
        try {
          xmlStorageMethod0.read((InputStream) fileInputStream0);
          fail("Expecting exception: ApplicationException");
        } catch(ApplicationException e) {
          /*
           * Error trying to read data
           */
        }
    }
  
    @Test
    public void test4()  throws Throwable  {
        XmlStorageMethod xmlStorageMethod0 = new XmlStorageMethod();
        ByteArrayOutputStream byteArrayOutputStream0 = new ByteArrayOutputStream();
        xmlStorageMethod0.write((OutputStream) byteArrayOutputStream0, (Object) "\u4E2D\u6587 (\u53F0\u7063)");
        assertEquals(68, byteArrayOutputStream0.size());
        assertEquals("<xml-serialized>\n<string>\u4E2D\u6587 (\u53F0\u7063)</string>\n</xml-serialized>\n", byteArrayOutputStream0.toString());
    }
  
    @Test
    public void test5()  throws Throwable  {
        XmlStorageMethod xmlStorageMethod0 = new XmlStorageMethod();
        try {
          xmlStorageMethod0.write((OutputStream) null, (Object) "data.xml");
          fail("Expecting exception: ApplicationException");
        } catch(ApplicationException e) {
          /*
           * Error writing object., [0] java.lang.NullPointerException
           */
        }
    }
  }
  