@Test
public void mergeDefinitions_AddsFieldsDefinedInReplacement_IfNoDefinitionIsPresent() throws Exception {

	// Given
	JsonNode sourceDefinitions = mapper.readTree("{}");
	JsonNode stagemonitorDefinitions = mapper.readTree("{\"fields\": \"[{\\\"name\\\": \\\"stagemonitorField\\\"}]\", \"fieldFormatMap\": \"{\\\"stagemonitor\\\": {\\\"name\\\": \\\"stagemonitorFieldFormatMap\\\"}}\"}");
	// When
	JsonNode resultDefinitions = JsonMerger.merge(sourceDefinitions, stagemonitorDefinitions, mergeStrategy);
	// Then
	JsonNode resultFields = mapper.readTree(resultDefinitions.get("fields").textValue());
	assertThat(resultFields).containsExactlyInAnyOrder(
			mapper.createObjectNode().put("name", "stagemonitorField"));
	JsonNode resultFieldFormat = mapper.readTree(resultDefinitions.get("fieldFormatMap").textValue());
	assertThat(resultFieldFormat).hasSize(1);
	assertThat(resultFieldFormat.get("stagemonitor")).isEqualTo(mapper.createObjectNode().put("name", "stagemonitorFieldFormatMap"));
}