    @Test
    public void test() {

        IntentFilter intentFilter = new IntentFilter("test");
        Context context = RuntimeEnvironment.application.getApplicationContext();

        TestObserver<Intent> tester = RxReceiverLocal.receives(context, intentFilter)
                .test();
        Intent foobar = new Intent("test").putExtra("foo", "bar");
        LocalBroadcastManager.getInstance(context).sendBroadcast(foobar);
        tester.assertValues(foobar);

        Intent barbaz = new Intent("test").putExtra("bar", "baz");
        LocalBroadcastManager.getInstance(context).sendBroadcast(barbaz);
        tester.assertValues(foobar, barbaz);

        Intent nullIntent = new Intent("test_null").putExtra("bar", "baz");
        LocalBroadcastManager.getInstance(context).sendBroadcast(nullIntent);
        tester.assertValues(foobar, barbaz);

        LocalBroadcastManager.getInstance(context).sendBroadcast(barbaz);
        tester.assertValues(foobar, barbaz, barbaz);
    }