@Test
public void testGetDisplayStyleWithDisplayStyleParameter() {

	MockHttpServletRequest mockHttpServletRequest =
		new MockHttpServletRequest();
	mockHttpServletRequest.setParameter("displayStyle", "descriptive");
	ItemSelectorViewDescriptorRendererDisplayContext
		itemSelectorViewDescriptorRendererDisplayContext =
			new ItemSelectorViewDescriptorRendererDisplayContext(
				mockHttpServletRequest, null,
				new ItemSelectorViewDescriptor<Object>() {
					@Override
					public ItemDescriptor getItemDescriptor(Object object) {
						return null;
					}
					@Override
					public ItemSelectorReturnType
						getItemSelectorReturnType() {
						return null;
					}
					@Override
					public SearchContainer<Object> getSearchContainer() {
						return null;
					}
				},
				null, null);
	Assert.assertEquals(
		"descriptive",
		itemSelectorViewDescriptorRendererDisplayContext.getDisplayStyle());
}