@Test
public void testSafelySetCorrectMultiValuedAttribute() throws Exception {

  safelySetAttribute(metacard, ATTRIBUTE_KEY_TAG, Arrays.asList("Tag-A", "Tag-B"));
  Set<String> tags = metacard.getTags();
  assertThat(tags, is(notNullValue()));
  assertThat(tags, containsInAnyOrder("Tag-A", "Tag-B"));
}