CryptoContainer { public static String createContainerFileName(String fileName) { return getNameWithoutExtension(fileName) + "." + EXTENSION; }  abstract File file(); abstract ImmutableList<File> dataFiles(); abstract ImmutableList<Certificate> recipients(); abstract boolean decrypted(); CryptoContainer decrypt(DecryptToken decryptToken, Certificate authCertificate,
                                   String pin1, File dataFilesDirectory); @WorkerThread static CryptoContainer open(File file); @WorkerThread static CryptoContainer encrypt(ImmutableList<File> dataFiles,
                                          ImmutableList<Certificate> recipients, File file); static boolean isContainerFileName(String fileName); static String createContainerFileName(String fileName);  }
@Test public void createContainerFileName_pdf() { assertThat(CryptoContainer.createContainerFileName("some-file.pdf")) .isEqualTo("some-file.cdoc"); }