JUnit Version of Mike's lextest