@SuppressWarnings("static-method")
@Test
/	@Ignore // Necesita un servidor trifasico
public void pruebaFirmaXAdESASiCS() throws Exception {

	final byte[] data = AOUtil.getDataFromInputStream(ClassLoader.getSystemResourceAsStream(DATA_FILENAME));
	final KeyStore ks = KeyStore.getInstance("PKCS12"); //$NON-NLS-1$
	ks.load(ClassLoader.getSystemResourceAsStream(CERT_PATH), CERT_PASS.toCharArray());
	final PrivateKeyEntry pke = (PrivateKeyEntry) ks.getEntry(CERT_ALIAS, new KeyStore.PasswordProtection(CERT_PASS.toCharArray()));
	final AOSigner signer = new AOXAdESASiCSTriPhaseSigner();
	for (final Properties config : CONFIGS) {
		final byte[] result = signer.sign(data, AOSignConstants.SIGN_ALGORITHM_SHA1WITHRSA, pke.getPrivateKey(), pke.getCertificateChain(), config);
		final File tempFile = File.createTempFile("xades-asic-s-", ".zip"); //$NON-NLS-1$ //$NON-NLS-2$
		final FileOutputStream fos = new FileOutputStream(tempFile);
		fos.write(result);
		fos.close();
		System.out.println("El resultado de la firma se ha guardado en: " + tempFile.getAbsolutePath()); //$NON-NLS-1$
	}
}