md.addDocument(new Document());
md.addDocument(new Document());
assertNull(multiDocumentParser.parse(md));
SimpleEntity entity = baseDao.first(SimpleEntity.class);
md = baseDao.first(MultiDocument.class);
md.removeAll();
MultiDocument parsed = multiDocumentParser.parse(md);
assertNull(parsed);
entity.setPhotos(parsed);
baseDao.update(entity);
assertNull(baseDao.first(MultiDocument.class));