EclipsePlatform mac = new EclipsePlatform("mac", Collections.<EclipseRelease> emptyList());
platforms.put("mac", mac);
EclipsePlatform linux = new EclipsePlatform("linux", Collections.<EclipseRelease> emptyList());
platforms.put("linux", linux);
EclipseDownloads eclipseDownloads = new EclipseDownloads(platforms);
when(service.getEclipseDownloads()).thenReturn(eclipseDownloads);
controller.eclipseIndex(model);
assertThat((List<EclipsePlatform>) model.get("platforms"), contains(windows, mac, linux));