  @Test
  public void shouldUseCustomNotifier() {

    Config config;
    final String notifierVersion = "1.2.3";
    final String notifierName = "custom-notifier";

    Rollbar sut = new Rollbar(mockApplicationContext, ACCESS_TOKEN, ENVIRONMENT, true, false, new ConfigProvider() {
      @Override
      public Config provide(ConfigBuilder builder) {
        return builder
          .notifier(new NotifierProvider(notifierVersion, notifierName))
          .build();
      }
    });

    config = sut.config();

    assertEquals(config.notifier().provide().getVersion(), notifierVersion);
    assertEquals(config.notifier().provide().getName(), notifierName);
  }