@Test
public void testGetTitleWithAttribute() {

	FileShortcut fileShortcut = _addRandomFileShortcut();
	DLEditFileShortcutDisplayContext dlEditFileShortcutDisplayContext =
		_getDLEditFileShortcutDisplayContext(
			new MockHttpServletRequestBuilder().withAttribute(
				WebKeys.DOCUMENT_LIBRARY_FILE_SHORTCUT, fileShortcut
			).build());
	Mockito.when(
		_language.get(
			Mockito.any(HttpServletRequest.class),
			Mockito.eq("shortcut-to-x"), Mockito.anyString())
	).thenReturn(
		"Short Cut To X"
	);
	Assert.assertEquals(
		"Short Cut To X", dlEditFileShortcutDisplayContext.getTitle());
}