List<CommittedChangeList> () { final List<CommittedChangeList> result = new ArrayList<>(); // this is actually synchronous in tests myCache.loadIncomingChangesAsync(committedChangeLists -> result.addAll(committedChangeLists), true); return result; }