@Test
@AgentAttachmentRule.Enforce
public void FileSystemTracer_should_indicate_if_event_is_failure_via_exception() throws NoSuchMethodException {

    Method create = clazzFS.getMethod("create", Path.class,
        FsPermission.class,
        boolean.class,
        int.class,
        short.class,
        long.class,
        Progressable.class);
    //Using a uri path with a wrong scheme will force an exception
    try {
        create.invoke(dfs, new Path("ssss://not_a_path"), FsPermission.getDefault(), false, 1024, (short) 1, 1048576, null);
    } catch (Exception ignore) {
    }
    checkEvent(FsAction.WRITE.name(), new Path("ssss://not_a_path"), DataAccessEventProtos.FsEvent.Status.FAILURE);
}