767778798081828384858687
} @Test public void assertSavingANewCarFunctions() { final Car car = carInstance.get(); car.setColor("blue"); car.setMake("Ford"); car.setModel("Mustang"); carManager.save(car); assertThat(car.getId(), notNullValue()); }
55565758596061626364
*/ @Produces public Car getCar() { if (id == null) { log.info("Returning new instance of Car"); return new Car(); } log.info("Finding instance of Car with id " + id); return em.find(Car.class, id); }