To generate JUnit test cases for for the Java implementation of the vending machine, an adapter is needed between the test cases and the system under test. The test case generator for JUnit assumes a file Adapter.java is available in a package with the same name as the generated package that contains TestCases.java, i.e., “test.[name of interface]”. For interface IService it can be found at location src/test.IService.

For the vending machine, this file has already been written manually.