@Test
public final void testOnRemoveAspect() throws Exception
{

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