### Question:
Customer extends BaseModel { public void setName(String name) { this.name = name; }  String toString(); String getName(); void setName(String name); LocalDate getRegistered(); void setRegistered(LocalDate registered); String getComments(); void setComments(String comments); Address getBillingAddress(); void setBillingAddress(Address billingAddress); Address getShippingAddress(); void setShippingAddress(Address shippingAddress); List<Contact> getContacts(); void setContacts(List<Contact> contacts); List<Feature> getFeatures(); void setFeatures(List<Feature> features); static final CustomerFinder find; }### Answer:
@Test public void insert() { DelegateEbeanServer mock = new DelegateEbeanServer(); mock.withPersisting(true); MockiEbean.runWithMock(mock, () -> { Customer customer = new Customer(); customer.setName("jim"); customer.save(); customer.save(); }); assertThat(mock.capturedBeans.save).hasSize(2); }