### Question:
AsyncRepository { public <T> FutureObject<T> fetch(IdRef<T> id) { return r.fetchAsync(id); } AsyncRepository(Repository r); FutureObject<T> save(T object); FutureObject<Void> destroy(IdRef<?> id); FutureObject<T> fetch(IdRef<T> id);  }### Answer:
@Test public void testFetch() { IdRef<BasicObject> id = id(BasicObject.class, 1l); BasicObject object = new BasicObject("xpto"); object.setId(id); yawp.save(object); FutureObject<BasicObject> future = yawp.async().fetch(id); BasicObject retrievedObject = future.get(); assertEquals("xpto", retrievedObject.getStringValue()); }