예제 6-8은 유닛 테스트와 menu.txt 파일을 로드하는 방법을 보여준다. 예제에서 볼 수 있듯이 리소스 파일을 위한 몇 가지 옵션이 있다. 다음 명령으로 유닛 테스트를 수행하면
$ gradle :ch06:test
동일한 결과를 얻는다.
2014-07-30 17:09:02,474 DEBUG [Test worker] Calling the Menu as Resourceloader Injection:
Welcome to My Documents
1. Show all Documents
2. Show all Document's Types
3. Search by Type
4. Quit