public String getUri() {
        return uri;
    }
@Test
    public void validateSucceedsIfUriIsMissing() throws RepositoryException, ValidationException {
        MongoDbConfiguration configuration = new MongoDbConfiguration();
        new JadConfig(new InMemoryRepository(Collections.emptyMap()), configuration).process();
        assertEquals("mongodb://localhost/graylog", configuration.getUri());
    }