@Test
public void testShouldSendBreadcrumb() {

    ImmutableConfig immutableConfig;
    // Should notify if enabledBreadcrumbTypes is null
    config.setEnabledBreadcrumbTypes(null);
    immutableConfig = BugsnagTestUtils.convert(config);
    assertTrue(immutableConfig.shouldRecordBreadcrumbType(BreadcrumbType.MANUAL));
    // Should not notify if enabledBreadcrumbTypes is empty
    config.setEnabledBreadcrumbTypes(Collections.<BreadcrumbType>emptySet());
    immutableConfig = BugsnagTestUtils.convert(config);
    assertFalse(immutableConfig.shouldRecordBreadcrumbType(BreadcrumbType.MANUAL));
    // Should notify if present in enabled types
    config.setEnabledBreadcrumbTypes(Collections.singleton(BreadcrumbType.MANUAL));
    immutableConfig = BugsnagTestUtils.convert(config);
    assertTrue(immutableConfig.shouldRecordBreadcrumbType(BreadcrumbType.MANUAL));
    // Should not notify if not present in enabled types
    config.setEnabledBreadcrumbTypes(Collections.singleton(BreadcrumbType.ERROR));
    immutableConfig = BugsnagTestUtils.convert(config);
    assertFalse(immutableConfig.shouldRecordBreadcrumbType(BreadcrumbType.MANUAL));
}