urbanairship-core/src/test/java/com/urbanairship/push/IncomingPushRunnableTest.java
@Test
    public void testInvalidPushProvider() {
        when(pushManager.isComponentEnabled()).thenReturn(true);
        when(pushManager.isPushEnabled()).thenReturn(true);
        when(pushManager.isOptIn()).thenReturn(true);
        when(pushManager.isUniqueCanonicalId("testPushID")).thenReturn(true);

        pushRunnable = new IncomingPushRunnable.Builder(TestApplication.getApplication())
                .setProviderClass("wrong  class")
                .setMessage(new PushMessage(pushBundle))
                .setLongRunning(true)
                .setNotificationManager(notificationManager)
                .build();

        pushRunnable.run();

        verifyZeroInteractions(notificationManager);
    }
/**
     * Test receiving a push from an invalid provider.
     */
Test receiving a push from an invalid provider.
Test receiving a push from an invalid provider .
@Test
    public void testInvalidPushProvider() {
        when(pushManager.isComponentEnabled()).thenReturn(true);
        when(pushManager.isPushEnabled()).thenReturn(true);
        when(pushManager.isOptIn()).thenReturn(true);
        when(pushManager.isUniqueCanonicalId("testPushID")).thenReturn(true);
        pushRunnable = new IncomingPushRunnable.Builder(TestApplication.getApplication())
                .setProviderClass("wrong  class")
                .setMessage(new PushMessage(pushBundle))
                .setLongRunning(true)
                .setNotificationManager(notificationManager)
                .build();
        pushRunnable.run();
        verifyZeroInteractions(notificationManager);
    }
@ Test public void testInvalidPushProvider ( ) { when ( pushManager . isComponentEnabled ( ) ) . thenReturn ( true ) ; when ( pushManager . isPushEnabled ( ) ) . thenReturn ( true ) ; when ( pushManager . isOptIn ( ) ) . thenReturn ( true ) ; when ( pushManager . isUniqueCanonicalId ( "testPushID" ) ) . thenReturn ( true ) ; pushRunnable = new IncomingPushRunnable . Builder ( TestApplication . getApplication ( ) ) . setProviderClass ( "wrong  class" ) . setMessage ( new PushMessage ( pushBundle ) ) . setLongRunning ( true ) . setNotificationManager ( notificationManager ) . build ( ) ; pushRunnable . run ( ) ; verifyZeroInteractions ( notificationManager ) ; }
Test receiving a push from an invalid provider.
Test receiving a push from an invalid provider .