@Test
 public void testWithHomeFolderPojo()
     throws CvqException, CvqObjectNotFoundException, FileNotFoundException, IOException {
   SecurityContext.setCurrentSite(localAuthorityName, SecurityContext.FRONT_OFFICE_CONTEXT);
   // create a vo card request (to create home folder and associates)
   CreationBean cb = gimmeAnHomeFolderWithRequest();
   SecurityContext.setCurrentEcitizen(cb.getLogin());
   // get the home folder id
   HomeFolder homeFolder = homeFolderService.getById(cb.getHomeFolderId());
   assertNotNull(homeFolder);
   Long homeFolderId = homeFolder.getId();
   assertNotNull(homeFolderId);
   // fill and create the request
   //////////////////////////////
   TicketBookingRequest request = fillMeARequest();
   request.setRequesterId(SecurityContext.getCurrentUserId());
   request.setHomeFolderId(homeFolderId);
   TicketBookingRequestFeeder.setSubject(
       request, requestService.getSubjectPolicy(), null, homeFolder);
   Long requestId = requestWorkflowService.create(request);
   TicketBookingRequest requestFromDb =
       (TicketBookingRequest) requestSearchService.getById(requestId, true);
   assertEquals(requestId, requestFromDb.getId());
   assertNotNull(requestFromDb.getRequesterId());
   assertNotNull(requestFromDb.getRequesterLastName());
   if (requestFromDb.getSubjectId() != null) assertNotNull(requestFromDb.getSubjectLastName());
   completeValidateAndDelete(requestFromDb);
   HomeFolder homeFolderAfterDelete = homeFolderService.getById(homeFolderId);
   assertNotNull(homeFolderAfterDelete);
   assertNotNull(homeFolderService.getHomeFolderResponsible(homeFolderAfterDelete.getId()));
 }