@Test
void buildOneServices() throws DocumentParseException {

    ServiceEntityBuilder builder = new ServiceEntityBuilder(DocumentTools.INSTANCE, new IdGenerator());
    Bundle bundle = new Bundle(projectInfo);
    Folder serviceParentFolder = setUpFolderAndPolicy(bundle, "/my/policy.xml", "policy");
    Service service = new Service();
    service.setHttpMethods(Stream.of("POST", "GET").collect(Collectors.toSet()));
    service.setUrl("/my/service/url");
    service.setPolicy("/my/policy.xml");
    service.setParentFolder(serviceParentFolder);
    service.setProperties(new HashMap<String, Object>() {{
        put("key1", "value1");
        put("ENV.key.environment", "something");
    }});
    service.setName("service1");
    bundle.putAllServices(new HashMap<String, Service>() {{
        put("/v1/service1", service);
    }});
    List<Entity> services = builder.build(bundle, EntityBuilder.BundleType.DEPLOYMENT, DocumentTools.INSTANCE.getDocumentBuilder().newDocument());
    assertEquals(1, services.size());
    Entity serviceEntity = services.get(0);
    verifyService(service, serviceEntity, 1, "service" + 1);
}