@Test
public void mergeDefinitions_ThrowsIllegalArgumentExceptionOnInvalidFieldFormatMapType() throws Exception {

	// Given
	JsonNode sourceDefinitions = mapper.readTree("{\"fields\": \"[]\", \"fieldFormatMap\": \"[]\"}");
	JsonNode stagemonitorDefinitions = mapper.readTree("{\"fields\": \"[{\\\"name\\\": \\\"fooField\\\", \\\"value\\\": \\\"new\\\"}]\", \"fieldFormatMap\": \"{\\\"foo\\\": {\\\"name\\\": \\\"fooNew\\\"}}\"}");
	// Then
	assertThatIllegalArgumentException().isThrownBy(() -> JsonMerger.merge(sourceDefinitions, stagemonitorDefinitions, mergeStrategy))
			.withMessage("error after decodingfieldFormatMap. Expected decoded type to be OBJECT, but encountered ARRAY");
}