1617181920212223242526
InfoCustomer customer = new InfoCustomer(); customer.setName("first info cust"); customer.setCompany(company); customer.save(); // assert both are inserted Assert.assertNotNull(customer.getId()); Assert.assertNotNull(company.getId());