JarSignerSignRequest jarSignerRequest = buildJarSignerRequest( target );
JarSigner jarSigner = (JarSigner) lookup( JarSigner.class.getName() );
JavaToolResult jarSignerResult = jarSigner.execute( jarSignerRequest );
assertEquals( "not exit code 0 " + jarSignerResult.getExecutionException(), 0, jarSignerResult.getExitCode() );
JarSignerVerifyRequest request = new JarSignerVerifyRequest();
request.setCerts( true );
request.setVerbose( true );
request.setArchive( new File( "target/ssimple.jar" ) );
request.setKeystore( "src/test/keystore" );
request.setAlias( "foo_alias" );
jarSignerResult = jarSigner.execute( request );
assertEquals( "not exit code 0 " + jarSignerResult.getExecutionException(), 0, jarSignerResult.getExitCode() );
}