urbanairship-core/src/test/java/com/urbanairship/richpush/RichPushInboxTest.java
@Test
    public void testInitNoUser() {
        when(mockUser.getId()).thenReturn(null);

        inbox.init();

        verify(mockUser, never()).update(false);
    }
/**
     * Test init only updates the mockUser if it already exists. Normally the mockUser updates
     * after channel creation.
     */
Test init only updates the mockUser if it already exists. Normally the mockUser updates
after channel creation.
Test init only updates the mockUser if it already exists . Normally the mockUser updates after channel creation .
@Test
    public void testInitNoUser() {
        when(mockUser.getId()).thenReturn(null);
        inbox.init();
        verify(mockUser, never()).update(false);
    }
@ Test public void testInitNoUser ( ) { when ( mockUser . getId ( ) ) . thenReturn ( null ) ; inbox . init ( ) ; verify ( mockUser , never ( ) ) . update ( false ) ; }
Test init only updates the mockUser if it already exists.
Test init only updates the mockUser if it already exists .