@Override
    protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
        if (remaining.split("/").length > 1) {
            throw new IllegalArgumentException("Invalid URI: " + URISupport.sanitizeUri(uri));
        }

        SplunkHECEndpoint answer = new SplunkHECEndpoint(uri, this, new SplunkHECConfiguration());
        setProperties(answer, parameters);
        answer.setSplunkURL(remaining);

        return answer;
    }
@Test
    public void testFQHNValid() throws Exception {
        SplunkHECEndpoint endpoint = (SplunkHECEndpoint) component.createEndpoint(
                "splunk-hec:http-input.splunkcloud.com:18808?token=11111111-1111-1111-1111-111111111111");
        endpoint.init();
        assertEquals("http-input.splunkcloud.com:18808", endpoint.getSplunkURL());
        assertEquals("11111111-1111-1111-1111-111111111111", endpoint.getConfiguration().getToken());
    }