@Test
public void testTextOutput() {

	DocumentContext documentContext = mock(DocumentContext.class);
	DDMDataProviderRequest.Builder builder =
		DDMDataProviderRequest.Builder.newBuilder();
	DDMDataProviderRequest ddmDataProviderRequest = builder.build();
	String outputParameterId = StringUtil.randomString();
	DDMRESTDataProviderSettings ddmRESTDataProviderSettings =
		_createSettingsWithOutputParameter(
			outputParameterId, "text output", false, "textProp", "text");
	when(
		documentContext.read(".textProp", String.class)
	).thenReturn(
		"brazil"
	);
	DDMDataProviderResponse ddmDataProviderResponse =
		_ddmRESTDataProvider.createDDMDataProviderResponse(
			documentContext, ddmDataProviderRequest,
			ddmRESTDataProviderSettings);
	Optional<String> optional = ddmDataProviderResponse.getOutputOptional(
		outputParameterId, String.class);
	Assert.assertEquals("brazil", optional.get());
}