### Question:
TagsCellValue { public List<Tag> getTags() { TagManager tagMgr = request.getResourceResolver().adaptTo(TagManager.class); Resource resource = (Resource) request.getAttribute("result"); log.debug("Loading tags from {}@{}", resource.getPath(), property); List<Tag> tags = new ArrayList<Tag>(); String[] values = resource.getValueMap().get(property, String[].class); if (values != null) { for (String value : values) { tags.add(tagMgr.resolve(value)); } } log.debug("Loaded {} tags", tags.size()); return tags; }  List<Tag> getTags();  }### Answer:
@Test public void testEmpty() throws IllegalAccessException { log.info("testEmpty"); TagsCellValue val = new TagsCellValue(); FieldUtils.writeField(val, "property", "tags2", true); FieldUtils.writeField(val, "request", request, true); List<Tag> tags = val.getTags(); assertEquals(0, tags.size()); log.info("Test successful!"); }
@Test public void testExporter() throws IllegalAccessException { log.info("testExporter"); TagsCellValue val = new TagsCellValue(); FieldUtils.writeField(val, "property", "tags", true); FieldUtils.writeField(val, "request", request, true); assertTrue(ArrayUtils.isEquals(new Tag[] { tag1, tag2 }, val.getTags().toArray(new Tag[val.getTags().size()]))); log.info("Test successful!"); }