Added programmatic JUnit test