    @Test
    public void testOnErrorEventEmitted () {

        verify(mEventEmitter, never()).receiveEvent(anyInt(), anyString(), any(WritableMap.class));

        WebImageViewTarget target = new WebImageViewTarget(mImageView);

        mViewManager.mRequestListener.onLoadFailed(new GlideException("some error"), null, target, true);

        WritableMap expectedEvent = new JavaOnlyMap();
        expectedEvent.putString("uri", "http://fake/favicon.png");
        expectedEvent.putString("error", "some error");

        verify(mEventEmitter).receiveEvent(-1, "onWebImageError", expectedEvent);
    }