@Test
public void autoExtensionExtSourcesInCorrectSemantics() throws Exception {

	Map<String, String> value = new LinkedHashMap<>();
	when(session.getPerunBl().getExtSourcesManagerBl().getExtSourceById(any(), anyInt()))
			.thenThrow(ExtSourceNotExistsException.class);
	value.put(autoExtensionExtSources, "3");
	attributeToCheck.setValue(value);
	assertThatExceptionOfType(WrongReferenceAttributeValueException.class)
			.isThrownBy(() -> classInstance.checkAttributeSemantics(session, vo, attributeToCheck));
}