Create unit tests to verify compliance with [RFC 4180](http://tools.ietf.org/html/rfc4180). Also, consider implementing the parser using ANTLR using the ABNF from the RFC.