@Test
public void testGetDefaultLanguageId() throws Exception {

	DLEditFileEntryTypeDisplayContext dlEditFileEntryTypeDisplayContext =
		new DLEditFileEntryTypeDisplayContext(
			_ddm, _ddmStorageLinkLocalService, _ddmStructureLocalService,
			_language,
			new MockLiferayPortletRenderRequest(
				new MockHttpServletRequestBuilder().withAttribute(
					WebKeys.DOCUMENT_LIBRARY_DYNAMIC_DATA_MAPPING_STRUCTURE,
					_getRandomDDMStructure()
				).withParameter(
					"definition", RandomTestUtil.randomString()
				).build()),
			null);
	Assert.assertEquals(
		"pt_BR", dlEditFileEntryTypeDisplayContext.getDefaultLanguageId());
}