public void testCreateHotlink() {
final ShpDocFactory factory = new ShpDocFactory(null);
HotlinkDescriptor descriptor = new HotlinkDescriptor(LABEL, DESCRIPTION, ATTRIBUTE_NAME, ContentType.FILE, CONFIG);
IDocument doc = factory.create(INFO, Collections.singletonList(descriptor));
assertNotNull("Doc is null.", doc);
assertTrue("Doc's type is not expected.", doc instanceof FileHotlinkDocument);
descriptor = new HotlinkDescriptor(LABEL, DESCRIPTION, ATTRIBUTE_NAME, ContentType.WEB, CONFIG);
doc = factory.create(INFO, Collections.singletonList(descriptor));