@Test
public void mergeDefinitions_ThrowsIllegalArgumentExceptionOnInvalidFieldFormatMapDefinition() throws Exception {

	// Given
	JsonNode sourceDefinitions = mapper.readTree("{\"fields\": \"[]\", \"fieldFormatMap\": false}");
	JsonNode stagemonitorDefinitions = mapper.readTree("{\"fields\": \"[{\\\"name\\\": \\\"fooField\\\", \\\"value\\\": \\\"new\\\"}]\", \"fieldFormatMap\": \"{\\\"foo\\\": {\\\"name\\\": \\\"fooNew\\\"}}\"}");
	// Then
	assertThatIllegalArgumentException().isThrownBy(() -> JsonMerger.merge(sourceDefinitions, stagemonitorDefinitions, mergeStrategy))
			.withMessage("error before decoding fieldFormatMap. Expected textual or null field, but encountered BOOLEAN");
}