@Test
public void testGetRecommendedApps() throws Exception {

  AppStoreEntry example = new AppStoreEntry();
  example.setOrg("jenkins-ci.org");
  example.setName("jenkins");
  example.setDesc("World leading open source automation system.");
  example.setIcon("/css/img/feather.png");
  example.setDownload(100);
  spy.register(example);
  AppStoreEntry example2 = new AppStoreEntry();
  example2.setOrg("Apache");
  example2.setName("httpd");
  example2.setDesc("Apache webserver");
  example2.setIcon("/css/img/feather.png");
  example2.setDownload(1);
  spy.register(example2);
  List<AppStoreEntry> actual = spy.getRecommendedApps();
  long previous = 1000L;
  for (AppStoreEntry app: actual) {
    assertTrue("Recommend app is not sort by download count.",
        previous > app.getDownload());
    previous = app.getDownload();
  }
}