* and therefore remove the String value.
*/
@Test
public void testRemoveStringValuesByRemovingNaturalLanguageTextsWithEmptyLanguageArray() {
String field = "urn:the.field:used.for.this.Test";
Representation rep = initNaturalLanguageTest(field);
Set<String> textSet = new HashSet<String>(NL_TEST_all);
// remove a string value by parsing an empty list of languages
rep.removeNaturalText(field, NL_TEST_string, new String[] {});
textSet.addAll(Arrays.asList(NL_TEST_string, NL_TEST_noLang, NL_TEST_en, NL_TEST_en2, NL_TEST_de,
NL_TEST_de_AT));
for (Iterator<Text> texts = rep.getText(field); texts.hasNext(); textSet.remove(texts.next()
.getText()))
;
assertTrue(textSet.size() == 1); // only one element should be removed
assertTrue(textSet.remove(NL_TEST_string)); // and this should be the stringTest
rep.add(field, NL_TEST_string); // re add the value for further tests
}