@Test
public void testListOutputWithoutPagination() {

	DocumentContext documentContext = mock(DocumentContext.class);
	DDMDataProviderRequest.Builder builder =
		DDMDataProviderRequest.Builder.newBuilder();
	DDMDataProviderRequest ddmDataProviderRequest = builder.build();
	String outputParameterId = StringUtil.randomString();
	DDMRESTDataProviderSettings ddmRESTDataProviderSettings =
		_createSettingsWithOutputParameter(
			outputParameterId, "list output", false, "value;key", "list");
	when(
		documentContext.read(".value", List.class)
	).thenReturn(
		new ArrayList() {
			{
				add("Rio de Janeiro");
				add("São Paulo");
				add("Sergipe");
				add("Alagoas");
				add("Amazonas");
			}
		}
	);
	when(
		documentContext.read(".key")
	).thenReturn(
		new ArrayList() {
			{
				add("5");
				add("6");
				add("7");
				add("8");
				add("9");
			}
		}
	);
	DDMDataProviderResponse ddmDataProviderResponse =
		_ddmRESTDataProvider.createDDMDataProviderResponse(
			documentContext, ddmDataProviderRequest,
			ddmRESTDataProviderSettings);
	Optional<List<KeyValuePair>> optional =
		ddmDataProviderResponse.getOutputOptional(
			outputParameterId, List.class);
	List<KeyValuePair> keyValuePairs = new ArrayList<KeyValuePair>() {
		{
			add(new KeyValuePair("5", "Rio de Janeiro"));
			add(new KeyValuePair("6", "São Paulo"));
			add(new KeyValuePair("7", "Sergipe"));
			add(new KeyValuePair("8", "Alagoas"));
			add(new KeyValuePair("9", "Amazonas"));
		}
	};
	Assert.assertEquals(
		keyValuePairs.toString(), keyValuePairs, optional.get());
}