### Question:
AsyncRepository { public <T> FutureObject<Void> destroy(IdRef<?> id) { return r.destroyAsync(id); } AsyncRepository(Repository r); FutureObject<T> save(T object); FutureObject<Void> destroy(IdRef<?> id); FutureObject<T> fetch(IdRef<T> id);  }### Answer:
@Test(expected = NoResultException.class) public void testDestroy() { IdRef<BasicObject> id = id(BasicObject.class, 1l); BasicObject object = new BasicObject(); object.setId(id); yawp.save(object); FutureObject<Void> future = yawp.async().destroy(id); future.get(); id.fetch(); }