@Test
void testEncryptionDoesNotLeakSameSegments() {

    String testPath = "path/to/path/file/to";
    Uri testURI = new Uri(testPath);
    AuthPathEncryptionSecretKey pathEncryptionSecretKey = pathEncryptionSecretKey();
    Uri encrypted = symmetricPathEncryptionService.encrypt(pathEncryptionSecretKey, testURI);
    String[] encryptedSegments = encrypted.asString().split("/");
    assertThat(encryptedSegments[1]).isNotEqualTo(encryptedSegments[3]);
    assertThat(encryptedSegments[2]).isNotEqualTo(encryptedSegments[5]);
}