### Question:
ServiceInstanceDao { protected void delete(final Long... ids) { delete(Lists.newArrayList(ids)); } private  ServiceInstanceDao(); List<ServiceInstanceModel> query(); List<ServiceInstanceModel> select(ServiceInstanceModel filter); List<ServiceInstanceModel> select(List<Long> groupIds); static final ServiceInstanceDao INSTANCE; }### Answer:
@Test public void testDelete() throws Exception { ServiceInstanceModel serviceInstance = newServiceInstance(); serviceInstanceDao.insertOrUpdate(serviceInstance); ServiceInstanceModel newServiceInstance = query(serviceInstance); assertServiceInstance(serviceInstance, query(serviceInstance)); serviceInstanceDao.delete(newServiceInstance.getId()); Assert.assertNull(query(serviceInstance, 0)); }