@Test
public void test_doAction_noChildResource() throws RepositoryException, PersistenceException {

    when(resource.getPath()).thenReturn(COMPONENT);
    DeleteResource deleteResourceAction = new DeleteResource(resourceResolver);
    doNothing().when(resourceResolver).delete(resource);
    String result = deleteResourceAction.doAction(resource);
    verify(resourceResolver, times(1)).delete(resource);
    assertEquals(result, "Deleted resource " + COMPONENT);
}