@Test
public void testGetFieldValueNameJSONObjectWithNonexistingSegmentsFieldCustomizer() {

	String entityName = RandomTestUtil.randomString();
	String fieldName = RandomTestUtil.randomString();
	Mockito.doReturn(
		Optional.empty()
	).when(
		_segmentsFieldCustomizerRegistry
	).getSegmentsFieldCustomizerOptional(
		entityName, fieldName
	);
	JSONObject jsonObject =
		_getSegmentsFieldValueNameMVCResourceCommand.
			getFieldValueNameJSONObject(
				entityName, fieldName, RandomTestUtil.randomString(),
				LocaleUtil.getDefault());
	Assert.assertEquals("{}", jsonObject.toJSONString());
}