@Test
public void testIsUnhandled() {

    final Event logEvent = new Event(testException, config,
        HandledState.newInstance(HandledState.REASON_LOG),
        NoopLogger.INSTANCE);
    final Event anrEvent = new Event(testException, config,
        HandledState.newInstance(HandledState.REASON_ANR),
        NoopLogger.INSTANCE);
    final Event handledEvent = new Event(testException, config,
        HandledState.newInstance(HandledState.REASON_HANDLED_EXCEPTION),
        NoopLogger.INSTANCE);
    final Event rejectionEvent = new Event(testException, config,
        HandledState.newInstance(HandledState.REASON_PROMISE_REJECTION),
        NoopLogger.INSTANCE);
    final Event strictEvent = new Event(testException, config,
        HandledState.newInstance(HandledState.REASON_STRICT_MODE, Severity.WARNING, "Hello"),
        NoopLogger.INSTANCE);
    final Event unhandledEvent = new Event(testException, config,
        HandledState.newInstance(HandledState.REASON_UNHANDLED_EXCEPTION),
        NoopLogger.INSTANCE);
    final Event userEvent = new Event(testException, config,
        HandledState.newInstance(HandledState.REASON_USER_SPECIFIED),
        NoopLogger.INSTANCE);
    final Event callbackEvent = new Event(testException, config,
        HandledState.newInstance(HandledState.REASON_CALLBACK_SPECIFIED),
        NoopLogger.INSTANCE);
    assertFalse(logEvent.isUnhandled());
    assertTrue(anrEvent.isUnhandled());
    assertFalse(handledEvent.isUnhandled());
    assertTrue(rejectionEvent.isUnhandled());
    assertTrue(strictEvent.isUnhandled());
    assertTrue(unhandledEvent.isUnhandled());
    assertFalse(userEvent.isUnhandled());
    assertFalse(callbackEvent.isUnhandled());
}