@Test
  public void testGetCertificationsWithRankedOnTop() {
    List<CertificationType> certifications = Lists.newArrayList();
    Certification cert = CredentialFactory.getInstance().createCertification();
    Certification rankedCert = CredentialFactory.getInstance().createCertification();
    certifications.add(cert.getCertificationType());
    certifications.add(rankedCert.getCertificationType());
    List<CertificationType> rankedCertifications = Lists.newArrayList();
    rankedCertifications.add(rankedCert.getCertificationType());

    when(mockDataService.getAllSorted(CertificationType.class)).thenReturn(certifications);
    when(mockDataService.getAllRanked(CertificationType.class)).thenReturn(rankedCertifications);

    List<CertificationType> expectedCertifications = Lists.newArrayList(rankedCertifications);
    expectedCertifications.addAll(certifications);
    assertEquals(expectedCertifications, action.getCertificationsWithRankedOnTop());
  }