@Test
public void testApply() {

	DefaultDDMExpressionFieldAccessor ddmExpressionFieldAccessor =
		new DefaultDDMExpressionFieldAccessor();
	DDMFormFieldOptions ddmFormFieldOptions = mock(
		DDMFormFieldOptions.class);
	LocalizedValue localizedValue = new LocalizedValue();
	localizedValue.addString(LocaleUtil.US, "Option 1");
	localizedValue.addString(LocaleUtil.BRAZIL, "Opcao 1");
	when(
		ddmFormFieldOptions.getOptionLabels(Mockito.eq("optionName"))
	).thenReturn(
		localizedValue
	);
	GetFieldPropertyResponse.Builder builder =
		GetFieldPropertyResponse.Builder.newBuilder(ddmFormFieldOptions);
	ddmExpressionFieldAccessor.setGetFieldPropertyResponseFunction(
		getFieldPropertyRequest -> builder.build());
	_getOptionLabelFunction.setDDMExpressionFieldAccessor(
		ddmExpressionFieldAccessor);
	_getOptionLabelFunction.setLocale(LocaleUtil.BRAZIL);
	Assert.assertEquals(
		"Opcao 1",
		_getOptionLabelFunction.apply("fieldName", "optionName"));
}