### Question:
PreferencesRecentWorkspacesService implements RecentWorkspacesService { @Override public List<String> getRecentlyUsedWorkspaces() { List<String> values = new ArrayList<>(cache.keySet()); reverse(values); return unmodifiableList(values); } PreferencesRecentWorkspacesService(); @Override void addWorkspaceLastUsed(File workspace); @Override List<String> getRecentlyUsedWorkspaces(); @Override void clear(); void flush(); @EventListener void onShutdown(ShutdownEvent event);  }### Answer:
@Test public void maxCapacity() throws IOException, InterruptedException { populate(); assertEquals(PreferencesRecentWorkspacesService.MAX_CAPACITY, victim.getRecentlyUsedWorkspaces().size()); }