public URI getHttpExternalUri() {
        return httpExternalUri == null ? getHttpPublishUri() : httpExternalUri;
    }
@Test
    public void testHttpExternalUriIsRelativeURI() throws RepositoryException, ValidationException {
        jadConfig.setRepository(new InMemoryRepository(ImmutableMap.of("http_external_uri", "/foo/"))).addConfigurationBean(configuration).process();

        assertThat(configuration.getHttpExternalUri()).isEqualTo(URI.create("/foo/"));
    }