@Test
public final void testOnAddAspect() throws Exception
{

    serviceRegistry.getNodeService().addAspect(content1, ContentModel.ASPECT_AUTHOR, null);
    serviceRegistry.getNodeService().addAspect(content1, ContentModel.ASPECT_OWNABLE, null);
    txn.commit();
    txn = null;
    
    assertEquals(1, auditMapList.size());
    Map<String, Serializable> auditMap  = auditMapList.get(0);
    assertEquals("addNodeAspect", auditMap.get("action"));
    assertContains("addNodeAspect", auditMap.get("sub-actions"));
    assertEquals("/cm:homeFolder/cm:folder1/cm:content1", auditMap.get("path"));
    assertEquals(2, ((Set<?>)auditMap.get("aspects/add")).size());
    assertTrue("Individual author aspect missing", auditMap.containsKey("aspects/add/cm:author"));
    assertTrue("Individual ownable aspect missing", auditMap.containsKey("aspects/add/cm:ownable"));
    assertEquals("cm:content", auditMap.get("type"));
}