public static void main(String[] args) {
    TestHibernateFactuur tester = new TestHibernateFactuur();
    DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd");
    Calendar calendar = Calendar.getInstance();
    Factuur testFactuur = new Factuur();
    Bestelling testBestelling = new Bestelling();

    testBestelling.setBestelling_id(2);
    testFactuur.setFactuur_nr(6);
    testFactuur.setBestelling(testBestelling);
    Date date = Date.valueOf(dateformat.format(calendar.getTime()));
    // Date date = new Date();
    // calendar.set(2016, 10, 10);

    testFactuur.setDatumBesteld(date);
    testFactuur.setFactuur_id(5);

    // tester.testVoegToeFactuur(testFactuur); //werkt zonder toevoeging van betalingSet
    // tester.testVindFactuurMetId(testFactuur);//fetch = FetchType.EAGER toegevoegd aan Factuur
    // betalingSet. Werkt nu, Set is op het moment leeg.
    // tester.testVindFactuurMetBestellingId(testFactuur);//werkt, vindFactuurMetBestellingId() HQL
    // aangepast van factuur.getBestelling() naar factuur.getBestelling().getBestelling_Id()
    // tester.testVindAlleFacturen();//werkt
    // tester.testWijzigFactuur(testFactuur);//werkt
    // tester.testWissenMetFactuurId(testFactuur);//werkt
    // tester.testWissenMetBestellingId(testFactuur);//werkt
  }