// Path: copybook4java/src/main/java/com/nordea/oss/copybook/exceptions/CopyBookException.java
// public class CopyBookException extends RuntimeException {
//     private static final long serialVersionUID = 28118369047109260L;
//     public CopyBookException(String message) {
//         super(message);
//     }
// 
//     public CopyBookException(String message, TypeConverterException ex) {
//         super(message + ": " + ex.getClass().getSimpleName() + " :" + ex.getMessage());
//     }
// 
//     public CopyBookException(String message, Exception ex) {
//         super(message + ": " + ex.getClass().getSimpleName() + " :" + ex.getMessage());
//     }
// }


import com.nordea.oss.copybook.annotations.CopyBookLine;
import com.nordea.oss.copybook.annotations.CopyBook;
import com.nordea.oss.copybook.exceptions.CopyBookException;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

    @CopyBook()
    public class ArrayOfObjectToStringArray {
        @CopyBookLine("01 OBJS OCCURS 10 TIMES.")
        private String[] fields;
    }

    @CopyBook()
    public class IntegerArrayToInteger {
        @CopyBookLine("01 FIELDS OCCURS 10 TIMES.")
        @CopyBookLine("02 FIELD PIC 9(8).")
        private int fields;
    }

    @CopyBook()
    public class StringArrayToString {
        @CopyBookLine("01 FIELDS OCCURS 10 TIMES.")
        @CopyBookLine("02 FIELD PIC X(8).")
        private String fields;
    }

    @CopyBook()
    public class ArrayOfObjectToString {
        @CopyBookLine("01 OBJS OCCURS 10 TIMES.")
        private String fields;
    }


    @Test
    public void testIntegerToString() throws Exception {
// Path: copybook4java/src/main/java/com/nordea/oss/copybook/exceptions/CopyBookException.java
// public class CopyBookException extends RuntimeException {
//     private static final long serialVersionUID = 28118369047109260L;
//     public CopyBookException(String message) {
//         super(message);
//     }
// 
//     public CopyBookException(String message, TypeConverterException ex) {
//         super(message + ": " + ex.getClass().getSimpleName() + " :" + ex.getMessage());
//     }
// 
//     public CopyBookException(String message, Exception ex) {
//         super(message + ": " + ex.getClass().getSimpleName() + " :" + ex.getMessage());
//     }
// }


// Path: copybook4java/src/test/java/com/nordea/oss/copybook/serializers/CopyBookParserMappingExceptionTest.java
import com.nordea.oss.copybook.annotations.CopyBookLine;
import com.nordea.oss.copybook.annotations.CopyBook;
import com.nordea.oss.copybook.exceptions.CopyBookException;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;


    @CopyBook()
    public class ArrayOfObjectToStringArray {
        @CopyBookLine("01 OBJS OCCURS 10 TIMES.")
        private String[] fields;
    }

    @CopyBook()
    public class IntegerArrayToInteger {
        @CopyBookLine("01 FIELDS OCCURS 10 TIMES.")
        @CopyBookLine("02 FIELD PIC 9(8).")
        private int fields;
    }

    @CopyBook()
    public class StringArrayToString {
        @CopyBookLine("01 FIELDS OCCURS 10 TIMES.")
        @CopyBookLine("02 FIELD PIC X(8).")
        private String fields;
    }

    @CopyBook()
    public class ArrayOfObjectToString {
        @CopyBookLine("01 OBJS OCCURS 10 TIMES.")
        private String fields;
    }


    @Test
    public void testIntegerToString() throws Exception {
        expectedEx.expect(CopyBookException.class);