public void testSaveStranogGosta() {
		Osoba o = new Osoba();
		o.setImePrezime("Alen Kopic");
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		
		try {
			o.setDatumRodjenja(sdf.parse("1992-10-21"));
		} catch (java.text.ParseException p) {
			System.out.println(p.toString());
		}

		o.setAdresa("Vitkovac 166");
		Gost g = new Gost();
		g.setMjestoRodjenja("Beograd");
		g.setOsoba(o);

		DBManager.saveOsobu(o);
		DBManager.saveGosta(g);
		StraniGost sg = new StraniGost();
		sg.setBrojPutneIsprave("A000000");
		sg.setBrojVize("A000000");

		try {
			sg.setDatumDozvoleBoravka(sdf.parse("2014-06-10"));
		} catch (java.text.ParseException p) {
			System.out.println(p.toString());
		}
		try {
			sg.setDatumUlaskaUBih(sdf.parse("2014-06-10"));
		} catch (java.text.ParseException p) {
			System.out.println(p.toString());
		}

		

		sg.setDrzavljanstvo("BIH");
		sg.setGost(g);
		sg.setVrstaPutneIsprave("Neka");
		sg.setVrstaVize("Neka");
		DBManager.saveStranogGosta(sg);
		
		List<StraniGost> stranigosti = DBManager.dajStraneGoste();
		Boolean tacno=false;
		for (StraniGost i : stranigosti) {
			if(i.getBrojPutneIsprave()!=null)
			if(	i.getBrojPutneIsprave().equals(sg.getBrojPutneIsprave()))
				tacno=true;
		}
		Assert.assertTrue(tacno);
		
		
		Session session = HibernateUtil.getSessionFactory().openSession();
		Transaction t1 = session.beginTransaction();
		session.delete(o);
		session.delete(g);
		session.delete(sg);
		t1.commit();
		session.close();
	}