@Test
  public void should_generate_a_service_containing_parameter_values() throws Exception {
    HashMap<String, PropertyValue> propertyValues = new HashMap<>();
    PropertyValue propertyValue = new PropertyValue();
    propertyValue.setType("bar");
    propertyValue.setValue("baz");
    propertyValues.put("foo", propertyValue);

    Component component = aComponent().withPropertyValue("foo", "bar", "baz").build();
    Page page = aPage().with(component).build();

    assertThat(propertyValuesVisitor.generate(page))
        .isEqualTo(
            new TemplateEngine("factory.hbs.js")
                .with("name", "propertyValues")
                .with("resources", singletonMap(component.getReference(), propertyValues))
                .build(this));
  }