@Test
public final void testOnCreateVersion() throws Exception
{

   Map<String, Serializable> versionProperties = getVersionProperties();
   serviceRegistry.getVersionService().createVersion(content1, versionProperties);
    txn.commit();
    txn = null;
    
    assertEquals(1, auditMapList.size());
    Map<String, Serializable> auditMap = auditMapList.get(0);
    assertEquals("CREATE VERSION", auditMap.get("action"));
    assertContains("updateNodeProperties", auditMap.get("sub-actions"));
    assertContains("createVersion", auditMap.get("sub-actions"));
    assertEquals("/cm:homeFolder/cm:folder1/cm:content1", auditMap.get("path"));
    assertTrue("cm:versionable should be a value with in the set", ((Set<?>)auditMap.get("aspects/add")).contains(ContentModel.ASPECT_VERSIONABLE));
    assertTrue("Individual versionable aspect should exist", auditMap.containsKey("aspects/add/cm:versionable"));
    assertEquals("cm:content", auditMap.get("type"));
}