    @Test
    public void getWithInvalidScheme() throws Exception {

        expectedException.expect(IllegalArgumentException.class);
        expectedException.expectMessage("Unsupported protocol \"invalid\"");

        final MetricsInfluxDbReporterConfiguration configuration = new MetricsInfluxDbReporterConfiguration() {
            @Override
            public URI getUri() {
                return URI.create("invalid://127.0.0.1:8086/database");
            }
        };
        final InfluxDbSenderProvider provider = new InfluxDbSenderProvider(configuration);
        provider.get();
    }