EncryptedValueDataService { public Long countAllByCanaryUuid(final UUID uuid) { return encryptedValueRepository.countByEncryptionKeyUuidNot(uuid); } @Autowired protected  EncryptedValueDataService(
    final EncryptedValueRepository encryptedValueRepository,
    final Encryptor encryptor); Long countAllByCanaryUuid(final UUID uuid); Slice<EncryptedValue> findByCanaryUuids(final List<UUID> canaryUuids); void rotate(final EncryptedValue encryptedValue);  }
@Test public void countAllByCanaryUuid() throws Exception { final UUID uuid = UUID.randomUUID(); subject.countAllByCanaryUuid(uuid); verify(encryptedValueRepository).countByEncryptionKeyUuidNot(uuid); }