}
@Test
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));
assertNotNull("Doc is null.", doc);
assertTrue("Doc's type is not expected.", doc instanceof WebHotlinkDocument);
descriptor = new HotlinkDescriptor(LABEL, DESCRIPTION, ATTRIBUTE_NAME, ContentType.ACTION, CONFIG);
doc = factory.create(INFO, Collections.singletonList(descriptor));
assertNotNull("Doc is null.", doc);
assertTrue("Doc's type is not expected.", doc instanceof ActionHotlinkDocument);
descriptor = new HotlinkDescriptor(LABEL, DESCRIPTION, ATTRIBUTE_NAME, ContentType.ACTION, CONFIG);
HotlinkDescriptor descriptor2 = new HotlinkDescriptor(LABEL, DESCRIPTION, ATTRIBUTE_NAME, ContentType.ACTION, CONFIG);
HotlinkDescriptor descriptor3 = new HotlinkDescriptor(LABEL, DESCRIPTION, ATTRIBUTE_NAME, ContentType.ACTION, CONFIG);
final List<HotlinkDescriptor> descriptors = new ArrayList<HotlinkDescriptor>();
descriptors.add(descriptor);
descriptors.add(descriptor2);
descriptors.add(descriptor3);
doc = factory.create(INFO, descriptors);
assertNotNull("Doc is null.", doc);
assertTrue("Doc's type is not expected.", doc instanceof ActionHotlinkDocument);
}