CBSyncRepository implements SyncRepository<T> { @Override public AsyncRepository<T> async() { return async; }  @Override T save(final T entity); @Override Iterable<T> save(final Iterable<T> entities); @Override boolean exists(final T entity); @Override boolean exists(final String id); @Override T findOne(final String id); @Override Iterable<T> findAll(); @Override Iterable<T> findAll(final Iterable<String> ids); @Override String delete(final T entity); @Override String delete(final String id); @Override List<String> deleteAll(); @Override List<T> queryView(final ViewQuery query); @Override AsyncRepository<T> async();  }
@Test public void shouldReturnAsyncRepository() { assertSame(async, sync.async()); }