public void testIconManager()
throws NoSuchFieldException, IllegalAccessException, InterruptedException, BrokenBarrierException, ClassNotFoundException {
// Stop iconsLoader of iconManager
IconManager iconManager = IconManager.getInstance();
iconManager.clear();
// Replace icon manager by an executor that controls the start of a task with a barrier
final CyclicBarrier iconLoadingStartBarrier = new CyclicBarrier(2);
final ThreadPoolExecutor replacingIconsLoader =
new ThreadPoolExecutor(1, 1, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>()) {
@Override