// fetch and then update both
InfoCustomer fetchedCustomer = InfoCustomer.find.byId(customer.getId());
fetchedCustomer.getCompany().setName("3rd mod company");
fetchedCustomer.setName("3rd mod customer");
fetchedCustomer.update();
// delete both customer and company
fetchedCustomer.delete();
Assert.assertNull(InfoCustomer.find.byId(customer.getId()));