@Test
public void successfulCreationWithProperties() {

    URL resource = getClass().getResource("/valid-properties.xml");
    Map<String,String> props = new HashMap<>();
    props.put("a", "b");
    props.put("b", "1");
    SimplePropertySource source = new SimplePropertySource("test", props);
    assertThat(source).isNotNull();
    assertThat(source.getProperties()).hasSize(2); // double the getNumChilds for .source values.
    assertThat(source.getProperties()).contains(entry("a", PropertyValue.createValue("a", "b").setMeta("source", "test")));
    assertThat(source.getProperties()).contains(entry("b", PropertyValue.createValue("b", "1").setMeta("source", "test")));
}