urbanairship-core/src/test/java/com/urbanairship/ChannelCaptureTest.java
@Test
    public void testForegroundClipboardWithTokenNoChannel() {
        when(mockPushManager.getChannelId()).thenReturn(null);
        clipboardManager.setPrimaryClip(ClipData.newPlainText("Channel", generateToken(null)));

        activityMonitor.startActivity();

        assertEquals(shadowOf(RuntimeEnvironment.application).getNextStartedActivity(), null);
    }
/**
     * Test app foreground when the clipboard contains the clipboard capture token
     * but the channel does not exist.
     */
Test app foreground when the clipboard contains the clipboard capture token
but the channel does not exist.
Test app foreground when the clipboard contains the clipboard capture token but the channel does not exist .
@Test
    public void testForegroundClipboardWithTokenNoChannel() {
        when(mockPushManager.getChannelId()).thenReturn(null);
        clipboardManager.setPrimaryClip(ClipData.newPlainText("Channel", generateToken(null)));
        activityMonitor.startActivity();
        assertEquals(shadowOf(RuntimeEnvironment.application).getNextStartedActivity(), null);
    }
@ Test public void testForegroundClipboardWithTokenNoChannel ( ) { when ( mockPushManager . getChannelId ( ) ) . thenReturn ( null ) ; clipboardManager . setPrimaryClip ( ClipData . newPlainText ( "Channel" , generateToken ( null ) ) ) ; activityMonitor . startActivity ( ) ; assertEquals ( shadowOf ( RuntimeEnvironment . application ) . getNextStartedActivity ( ) , null ) ; }
Test app foreground when the clipboard contains the clipboard capture token
 but the channel does not exist.
Test app foreground when the clipboard contains the clipboard capture token but the channel does not exist .