@Test
public void testGetEditFileShortcutURLWithAttribute()
	throws URISyntaxException {

	FileShortcut fileShortcut = _addRandomFileShortcut();
	DLEditFileShortcutDisplayContext dlEditFileShortcutDisplayContext =
		_getDLEditFileShortcutDisplayContext(
			new MockHttpServletRequestBuilder().withAttribute(
				WebKeys.DOCUMENT_LIBRARY_FILE_SHORTCUT, fileShortcut
			).build());
	AbstractUriAssert<?> abstractUriAssert = Assertions.assertThat(
		new URI(dlEditFileShortcutDisplayContext.getEditFileShortcutURL()));
	abstractUriAssert.hasParameter(Constants.CMD, Constants.UPDATE);
}