@Test
    public void testSerial() {
        System.out.println("ASD");
        LineTextField f = new LineTextField();
        f.setFieldName("HELLO");
        f.setMaxChars(100);
        try {
            FileOutputStream fos = new FileOutputStream("testfile");
            ObjectOutputStream oos = new ObjectOutputStream(fos);
            oos.writeObject(f);
            oos.flush();
            oos.close();
            Field read;
            FileInputStream fis = new FileInputStream("testfile");
            ObjectInputStream ois = new ObjectInputStream(fis);
            read = (LineTextField)ois.readObject();
            ois.close();
            if(read instanceof LineTextField) {
                System.out.println(f.getFieldName());
            }
        } catch(Exception e)
        {}
    }