@Test
public void testGetEntityFieldOptionalWithInvalidType() {

	AbstractThrowableAssert exception = Assertions.assertThatThrownBy(
		() -> _sortParserImpl.getEntityFieldOptional(
			_entityModel.getEntityFieldsMap(), "fieldExternal2/invalidType")
	).isInstanceOf(
		InvalidSortException.class
	);
	exception.hasMessageEndingWith("is not a complex property");
}