### Question:
Vehicle implements Serializable { public void setType(String type) { this.type = type; } Vehicle(String brand, String type);  Vehicle(); Long getId(); String getBrand(); void setBrand(String brand); String getType(); void setType(String type); @Override String toString();  }### Answer:
@Test void test01DatabaseConnection() { Vehicle opel = new Vehicle("Opel", "Kadett"); em.getTransaction().begin(); em.persist(opel); opel.setType("Commodore"); em.getTransaction().commit(); }