import org.apache.jackrabbit.core.TransientRepository;
public class VersioningTest {
public static void main(String[] args) throws Exception {
TransientRepository repository = new TransientRepository();
Session session = null;
try {
session = repository.login( new SimpleCredentials("nicolas.belisle@paypal.com", "perfectpassword4paypal".toCharArray()));
Node rootNode = session.getRootNode();
Node testNode = rootNode.addNode("test");
testNode.addMixin("mix:versionable");
String vhUuid = testNode.getVersionHistory().getUUID();