@Override
    public synchronized boolean onReportingPeriodEnd() {
        firstEventReceived = false;
        return false;
    }
@Test
    public void testOnReportingPeriodEnd() {
        assertTrue(strategy.onActivity(), "First call of onActivity() should return true.");
        assertFalse(strategy.onReportingPeriodEnd(), "onReportingPeriodEnd() should always return false.");
        assertTrue(strategy.onActivity(), "onActivity() should return true after onReportingPeriodEnd().");
        assertFalse(strategy.onReportingPeriodEnd(), "onReportingPeriodEnd() should always return false.");
    }