@Test
public void findTransitionalVersion_whenATransitionalCaDoesNotExist_returnsNull() {

  when(certificateVersionDataService.findBothActiveCertAndTransitionalCert(CREDENTIAL_NAME)).thenReturn(
    Collections.singletonList(certificateCredential));
  CertificateCredentialValue transitionalVersion = certificateAuthorityService.findTransitionalVersion(CREDENTIAL_NAME);
  assertNull(transitionalVersion);
}