urbanairship-core/src/test/java/com/urbanairship/ApplicationMetricsTest.java
@Test
    public void testLastOpenTimeTracking() {
        // Foreground the app to update last open time
        activityMonitor.startActivity();

        // Make sure the time is greater than 0
        assertTrue("Last open time should of updated", metrics.getLastOpenTimeMillis() > 0);
    }
/**
     * Test when a foreground broadcast is sent the
     * last open time is updated.
     */
Test when a foreground broadcast is sent the
last open time is updated.
Test when a foreground broadcast is sent the last open time is updated .
@Test
    public void testLastOpenTimeTracking() {
        activityMonitor.startActivity();
        assertTrue("Last open time should of updated", metrics.getLastOpenTimeMillis() > 0);
    }
@ Test public void testLastOpenTimeTracking ( ) { activityMonitor . startActivity ( ) ; assertTrue ( "Last open time should of updated" , metrics . getLastOpenTimeMillis ( ) > 0 ) ; }
Test when a foreground broadcast is sent the
 last open time is updated.
Test when a foreground broadcast is sent the last open time is updated .
// Foreground the app to update last open time // Make sure the time is greater than 0