}
@Test
public void testSetGetShapeDocInfos() {
final ShpDocPropertyParser parser = new ShpDocPropertyParser(url);
List<DocumentInfo> inInfos = new ArrayList<DocumentInfo>();
parser.setShapeDocmentInfos(inInfos);
List<DocumentInfo> outInfos = parser.getShapeDocumentInfos();
assertNull("Info list is not null.", outInfos);
inInfos.add(fileDocInfo1);
inInfos.add(webDocInfo1);
parser.setShapeDocmentInfos(inInfos);
outInfos = parser.getShapeDocumentInfos();
assertNotNull("Info list is null.", outInfos);
assertEquals("Info count is not expected.", 2, outInfos.size());
inInfos.remove(fileDocInfo1);
parser.setShapeDocmentInfos(inInfos);
outInfos = parser.getShapeDocumentInfos();
assertNotNull("Info list is null.", outInfos);
assertEquals("Info count is not expected.", 1, outInfos.size());
inInfos.add(fileDocInfo1);
inInfos.add(fileDocInfo2);
inInfos.add(webDocInfo2);
parser.setShapeDocmentInfos(inInfos);
outInfos = parser.getShapeDocumentInfos();
assertNotNull("Info list is null.", outInfos);
assertEquals("Info count is not expected.", 4, outInfos.size());
inInfos.clear();
parser.setShapeDocmentInfos(inInfos);
outInfos = parser.getShapeDocumentInfos();
assertNull("Info list is not null.", outInfos);
}