@Test
 public void testSaveVoyage() {
   Voyage voyage = new Voyage();
   List<Vessel> vessels = baseDao.getAll(Vessel.class, null);
   assertTrue(vessels.size() > 0);
   voyage.setVessel(vessels.get(0));
   voyage.setNumber(TestUtil.getRandomString(8));
   voyage = voyageDao.save(voyage);
   assertTrue(voyage.getId() != null);
 }
 @Test
 public void testGetVoyages() {
   voyageDao.getAll(Voyage.class, null);
   voyageDao.getVoyagesByFinishStatus(true);
   List<Voyage> voyages = voyageDao.getVoyagesByFinishStatus(false);
   assertTrue(voyages.size() > 0);
   Voyage v = voyages.get(0);
   assertTrue(v.getContainers().size() > 0);
   for (Container c : v.getContainers()) {
     assertNotNull(c);
   }
 }