urbanairship-core/src/test/java/com/urbanairship/ActivityMonitorTest.java
@Test
    public void testActivityStarted() throws Exception {
        Robolectric.buildActivity(Activity.class).create().start();
        Robolectric.flushForegroundThreadScheduler();

        assertTrue(isForeground);
    }
/**
     * This test verifies adding an activity calls the onForeground delegate call
     *
     * @throws Exception
     */
This test verifies adding an activity calls the onForeground delegate call
@throws Exception
This test verifies adding an activity calls the onForeground delegate call @throws Exception
@Test
    public void testActivityStarted() throws Exception {
        Robolectric.buildActivity(Activity.class).create().start();
        Robolectric.flushForegroundThreadScheduler();
        assertTrue(isForeground);
    }
@ Test public void testActivityStarted ( ) throws Exception { Robolectric . buildActivity ( Activity . class ) . create ( ) . start ( ) ; Robolectric . flushForegroundThreadScheduler ( ) ; assertTrue ( isForeground ) ; }
This test verifies adding an activity calls the onForeground delegate call
 @throws Exception
This test verifies adding an activity calls the onForeground delegate call @throws Exception