public static String decode(InputStream in) {
		StringBuilder strBuild = new StringBuilder();
		Collection<? extends Certificate> certificates = readCertificates(in);
		if (certificates != null) {
			for (Certificate cert : certificates) {
				CertificateManager certificateManager = new CertificateManager(cert);
				strBuild.append(certificateManager.generateText());
			}
		}
		return strBuild.toString();
	}
@Test
	public void decodeNotCertificateFile() throws IOException {
		try (InputStream in = new FileInputStream(emptyPath)) {
			String result = CertificateManager.decode(in);
			assertThat(result).isEmpty();
		}
	}