### Question:
OrphanRemovalService { public boolean orphansExist(ClientId clientId) { if (isAlive(clientId) || hasAliveSiblings(clientId)) { return false; } Orphans orphans = findOrphans(clientId); return !orphans.isEmpty(); } @Autowired  OrphanRemovalService(TokenService tokenService,
            TokenCertificateService tokenCertificateService,
            ClientService clientService,
            KeyService keyService,
            AuditDataHelper auditDataHelper); boolean orphansExist(ClientId clientId); void deleteOrphans(ClientId clientId);  }### Answer:
@Test public void orphansDontExistsIfClientExists() { assertFalse(orphanRemovalService.orphansExist(NON_DELETED_CLIENT_ID_O1)); }
@Test public void orphansDontExistsIfSiblings() { assertFalse(orphanRemovalService.orphansExist(DELETED_CLIENT_ID_WITH_SIBLINGS_O3)); }
@Test public void orphansDontExistIfNoOrphanItems() { assertFalse(orphanRemovalService.orphansExist(DELETED_CLIENT_ID_WITHOUT_ORPHAN_ITEMS_O4)); }
@Test public void orphansExistIfCsr() { assertTrue(orphanRemovalService.orphansExist(DELETED_CLIENT_ID_WITH_ORPHAN_CSR_O5)); }
@Test public void orphansExistIfCert() { assertTrue(orphanRemovalService.orphansExist(DELETED_CLIENT_ID_WITH_ORPHAN_CERT_O6)); }