public boolean sendEventToJS(String eventName, Bundle data, ReactContext reactContext) {
        if (reactContext != null) {
            sendEventToJS(eventName, Arguments.fromBundle(data), reactContext);
            return true;
        }
        return false;
    }
@Test
    public void sendEventToJS_hasReactContext_emitsEventToJs() throws Exception {
        WritableMap data = mock(WritableMap.class);

        final JsIOHelper uut = createUUT();
        boolean result = uut.sendEventToJS("my-event", data, mReactContext);

        assertTrue(result);
        verify(mRCTDeviceEventEmitter).emit("my-event", data);
    }