Added support for junit testing (example test included).