@@ -0,0 +1,1365 @@
+import business.model.Agency;%0Aimport business.model.Car;%0Aimport business.model.Contract;%0Aimport business.model.Customer;%0Aimport business.model.Location;%0Aimport business.model.Operator;%0Aimport business.service.GenericService;%0Aimport business.service.ServiceFactory;%0A%0A%0Apublic class Main %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09GenericService%3CLocation%3E locationService = ServiceFactory.getInstance(%22LocationService%22);%0A%09%09GenericService%3CAgency%3E agencyService = ServiceFactory.getInstance(%22AgencyService%22);%0A%09%09GenericService%3CCar%3E carService = ServiceFactory.getInstance(%22CarService%22);%0A%09%09GenericService%3COperator%3E operatorService = ServiceFactory.getInstance(%22OperatorService%22);%0A%09%09GenericService%3CCustomer%3E customerService = ServiceFactory.getInstance(%22CustomerService%22);%0A%09%09GenericService%3CContract%3E contractService = ServiceFactory.getInstance(%22ContractService%22);%0A%09%09%0A%09%09locationService.getAll().stream().forEach(m -%3E System.out.println(m.toString()));%0A%09%09agencyService.getAll().stream().forEach(m -%3E System.out.println(m.toString()));%0A%09%09carService.getAll().stream().forEach(m -%3E System.out.println(m.toString()));%0A%09%09operatorService.getAll().stream().forEach(m -%3E System.out.println(m.toString()));%0A%09%09customerService.getAll().stream().forEach(m -%3E System.out.println(m.toString()));%0A%09%09contractService.getAll().stream().forEach(m -%3E System.out.println(m.toString()));%0A%09%7D%0A%7D%0A

test class